diff options
| author | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 17:12:47 +0000 |
|---|---|---|
| committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 17:12:47 +0000 |
| commit | 08a006d08a4c35d2c3ecc9a3d10cf7fd14661a84 (patch) | |
| tree | 0cfc4f0736babb895eb97a65c6defe632a0249c7 /x11/imwheel/files/patch-getopt__getopt.c | |
| parent | f474a16cfbfad1844b9c50e45e36a3a77f0c59b5 (diff) | |
Rename all patches that contain '::' as a path separator, and use
'__' instead.
Diffstat (limited to 'x11/imwheel/files/patch-getopt__getopt.c')
| -rw-r--r-- | x11/imwheel/files/patch-getopt__getopt.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/x11/imwheel/files/patch-getopt__getopt.c b/x11/imwheel/files/patch-getopt__getopt.c new file mode 100644 index 000000000000..47198b724f93 --- /dev/null +++ b/x11/imwheel/files/patch-getopt__getopt.c @@ -0,0 +1,16 @@ +--- getopt/getopt.c.orig Tue Apr 6 05:22:57 1999 ++++ getopt/getopt.c Fri Jun 29 01:22:22 2001 +@@ -166,11 +166,12 @@ + /* Value of POSIXLY_CORRECT environment variable. */
+ static char *posixly_correct;
+
+-#ifdef __GNU_LIBRARY__
++#if defined(__GNU_LIBRARY__) || defined(__FreeBSD__)
+ /* We want to avoid inclusion of string.h with non-GNU libraries
+ because there are many ways it can cause trouble.
+ On some systems, it contains special magic macros that don't work
+ in GCC. */
++#include <stdlib.h>
+ #include <string.h>
+ #define my_index strchr
+ #else
|
