diff options
| author | Mathieu Arnold <mat@FreeBSD.org> | 2016-06-20 16:23:28 +0000 |
|---|---|---|
| committer | Mathieu Arnold <mat@FreeBSD.org> | 2016-06-20 16:23:28 +0000 |
| commit | 7ae7b018ccf7760013f368fcb83aad9ecd8982a8 (patch) | |
| tree | e83ee6693050a76e305a95a376451aa583df151e /x11/imwheel/files/patch-getopt_getopt.c | |
| parent | textproc/rubygem-gitlab-grit: make it work with rubygem-mime-types again (diff) | |
With the power of USES=dos2unix, get rid of most patches and files
with CRLF.
While there, run make makepatch, rename patches to use the new scheme,
and various fixes.
With hat: portmgr
Sponsored by: Absolight
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..aa8b79e8ca3d --- /dev/null +++ b/x11/imwheel/files/patch-getopt_getopt.c @@ -0,0 +1,16 @@ +--- getopt/getopt.c.orig 2016-06-20 12:59:05 UTC ++++ getopt/getopt.c +@@ -166,11 +166,12 @@ static enum + /* 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 |
