9e30e38a7a
- regen WANTLIB, PLIST and patch-src_xscanimage_c 'ok as in ok' ajacoutot@ (MAINTAINER)
26 lines
599 B
Plaintext
26 lines
599 B
Plaintext
$OpenBSD: patch-lib_getopt_c,v 1.1 2009/02/14 10:05:21 jasper Exp $
|
|
|
|
Fix potential 64-bit issues.
|
|
|
|
--- lib/getopt.c.orig Sat Feb 14 10:56:04 2009
|
|
+++ lib/getopt.c Sat Feb 14 10:59:32 2009
|
|
@@ -86,6 +86,18 @@
|
|
#endif
|
|
#endif
|
|
|
|
+#ifdef HAVE_STRING_H
|
|
+# include <string.h>
|
|
+#endif
|
|
+
|
|
+#ifdef HAVE_SYS_TYPES_H
|
|
+# include <sys/types.h>
|
|
+#endif
|
|
+
|
|
+#ifdef HAVE_UNISTD_H
|
|
+# include <unistd.h>
|
|
+#endif
|
|
+
|
|
/* This version of `getopt' appears to the caller like standard Unix `getopt'
|
|
but it behaves differently for the user, since it allows the user
|
|
to intersperse the options with the other arguments.
|