$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 +#endif + +#ifdef HAVE_SYS_TYPES_H +# include +#endif + +#ifdef HAVE_UNISTD_H +# include +#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.