freebsd-ports/security/nmap/files/patch-nbase::getopt.h
Munechika SUMIKAWA e74fa876ac Upgrade to 3.20
PR:		ports/49987
Submitted by:	Dominic Marks <dom@cus.org.uk>
		marius@alchemy.franken.de
2003-04-11 10:00:50 +00:00

14 lines
517 B
C

--- nbase/getopt.h.orig Sat Mar 29 22:29:42 2003
+++ nbase/getopt.h Sat Mar 29 22:47:18 2003
@@ -100,7 +100,11 @@
errors, only prototype getopt for the GNU C library. */
extern int getopt (int argc, char *const *argv, const char *shortopts);
#else /* not __GNU_LIBRARY__ */
+#if FREEBSD
+#include <unistd.h>
+#else
extern int getopt ();
+#endif
#endif /* __GNU_LIBRARY__ */
extern int getopt_long (int argc, char *const *argv, const char *shortopts,
const struct option *longopts, int *longind);