1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-30 21:49:25 +00:00
freebsd-ports/graphics/netpbm/files/patch-bm
Akinori MUSHA 4676671d3d Get shhopt library statically linked to each executable, driving it
out of the shared library.

PR:		ports/18016
Submitted by:	KATO Tsuguru <tkato@prontomail.ne.jp>
2000-04-27 11:28:19 +00:00

31 lines
1.1 KiB
Plaintext

--- pnm/tifftopnm.c.orig Tue Apr 4 03:10:27 2000
+++ pnm/tifftopnm.c Sat Apr 15 08:00:00 2000
@@ -35,6 +35,7 @@
*/
#include <string.h>
+#include "shhopt.h"
#include "pnm.h"
#ifdef VMS
#ifdef SYSV
@@ -512,9 +513,19 @@
*/
unsigned int option_def_index;
+ /* Create the OptStruct structure describing our options */
+ #define OPTENTRY(shortvalue,longvalue,typevalue,outputvalue,flagvalue) {\
+ option_def[option_def_index].shortName = (shortvalue); \
+ option_def[option_def_index].longName = (longvalue); \
+ option_def[option_def_index].type = (typevalue); \
+ option_def[option_def_index].arg = (outputvalue); \
+ option_def[option_def_index].flags = (flagvalue); \
+ option_def_index++; \
+ }
option_def_index = 0; /* incremented by OPTENTRY */
OPTENTRY('h', "headerdump", OPT_FLAG, &cmdline_p->headerdump, 0);
OPTENTRY(0, "alphaout", OPT_STRING, &cmdline_p->alpha_filename, 0);
+ option_def[option_def_index].type = OPT_END;
/* Set the defaults */
cmdline_p->headerdump = 0;