openbsd-ports/misc/gnugetopt/patches/patch-gnu_getopt_c

16 lines
407 B
Plaintext

$OpenBSD: patch-gnu_getopt_c,v 1.1 2009/03/15 21:23:09 jasper Exp $
Include missing header to fix 64-bit issues.
--- gnu/getopt.c.orig Sun Mar 15 22:22:03 2009
+++ gnu/getopt.c Sun Mar 15 22:22:13 2009
@@ -31,6 +31,8 @@
#include <config.h>
#endif
+#include <string.h>
+
#if !defined (__STDC__) || !__STDC__
/* This is a separate conditional since some stdc systems
reject `defined (const)'. */