openbsd-ports/devel/gperf/patches/patch-lib_getopt_c
2009-03-26 08:16:30 +00:00

16 lines
405 B
Plaintext

$OpenBSD: patch-lib_getopt_c,v 1.1 2009/03/26 08:16:30 jasper Exp $
Include missing header to fix 64-bit issues.
--- lib/getopt.c.orig Thu Apr 16 00:09:41 1998
+++ lib/getopt.c Wed Mar 25 21:08:52 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)'. */