diff options
Diffstat (limited to 'security/nmap/files/patch-nbase::getopt.h')
-rw-r--r-- | security/nmap/files/patch-nbase::getopt.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/security/nmap/files/patch-nbase::getopt.h b/security/nmap/files/patch-nbase::getopt.h new file mode 100644 index 000000000000..6f83861620ed --- /dev/null +++ b/security/nmap/files/patch-nbase::getopt.h @@ -0,0 +1,14 @@ +--- 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); |