1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00

Fix compile time errors.

This commit is contained in:
Cy Schubert 2009-01-18 04:25:41 +00:00
parent d85c8a1c8f
commit 731322da19
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=226357
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- src/getopt.c.orig 2007-12-21 13:03:26.000000000 -0800
+++ src/getopt.c 2008-09-26 13:45:11.958473185 -0700
@@ -195,6 +195,8 @@
/* gcc with -traditional declares the built-in strlen to return int,
and has done so at least since version 2.4.5. -- rms. */
extern int strlen(const char *);
+#else
+#include <string.h>
#endif /* not __STDC__ */
#endif /* __GNUC__ */

View File

@ -0,0 +1,11 @@
--- src/getopt.c.orig 2007-12-21 13:03:26.000000000 -0800
+++ src/getopt.c 2008-09-26 13:45:11.958473185 -0700
@@ -195,6 +195,8 @@
/* gcc with -traditional declares the built-in strlen to return int,
and has done so at least since version 2.4.5. -- rms. */
extern int strlen(const char *);
+#else
+#include <string.h>
#endif /* not __STDC__ */
#endif /* __GNUC__ */