diff options
author | fredb <fredb@pkgsrc.org> | 2001-08-11 20:51:24 +0000 |
---|---|---|
committer | fredb <fredb@pkgsrc.org> | 2001-08-11 20:51:24 +0000 |
commit | c121687279eebaa3e21ba8ad5985a2ee721b66ba (patch) | |
tree | 8586d416419d1899a36964f8aa3ec2280b510a8b /audio/xmms/patches | |
parent | de838f96984ac1e1836244c5af9c4d66f9a457e0 (diff) | |
download | pkgsrc-c121687279eebaa3e21ba8ad5985a2ee721b66ba.tar.gz |
Add include of <string.h> for missing prototype for strlen(). Also, OK
to include unistd.h on NetBSD, for getopt() prototype.
Diffstat (limited to 'audio/xmms/patches')
-rw-r--r-- | audio/xmms/patches/patch-aq | 22 | ||||
-rw-r--r-- | audio/xmms/patches/patch-ar | 22 |
2 files changed, 44 insertions, 0 deletions
diff --git a/audio/xmms/patches/patch-aq b/audio/xmms/patches/patch-aq new file mode 100644 index 00000000000..242d0f01203 --- /dev/null +++ b/audio/xmms/patches/patch-aq @@ -0,0 +1,22 @@ +$NetBSD: patch-aq,v 1.1 2001/08/11 20:51:25 fredb Exp $ + +--- wmxmms/getopt.c.orig Thu Jul 29 16:03:12 1999 ++++ wmxmms/getopt.c +@@ -64,7 +64,7 @@ + + /* This needs to come after some library #include + to get __GNU_LIBRARY__ defined. */ +-#ifdef __GNU_LIBRARY__ ++#if defined(__GNU_LIBRARY__) || defined(__NetBSD__) + /* Don't include stdlib.h for non-GNU C libraries because some of them + contain conflicting prototypes for getopt. */ + #include <stdlib.h> +@@ -198,7 +198,7 @@ + /* Value of POSIXLY_CORRECT environment variable. */ + static char *posixly_correct; + +-#ifdef __GNU_LIBRARY__ ++#if defined(__GNU_LIBRARY__) || defined(__NetBSD__) + /* 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 diff --git a/audio/xmms/patches/patch-ar b/audio/xmms/patches/patch-ar new file mode 100644 index 00000000000..eb6a38e78ba --- /dev/null +++ b/audio/xmms/patches/patch-ar @@ -0,0 +1,22 @@ +$NetBSD: patch-ar,v 1.1 2001/08/11 20:51:25 fredb Exp $ + +--- xmms/getopt.c.orig Thu Jul 29 16:03:12 1999 ++++ xmms/getopt.c +@@ -64,7 +64,7 @@ + + /* This needs to come after some library #include + to get __GNU_LIBRARY__ defined. */ +-#ifdef __GNU_LIBRARY__ ++#if defined(__GNU_LIBRARY__) || defined(__NetBSD__) + /* Don't include stdlib.h for non-GNU C libraries because some of them + contain conflicting prototypes for getopt. */ + #include <stdlib.h> +@@ -198,7 +198,7 @@ + /* Value of POSIXLY_CORRECT environment variable. */ + static char *posixly_correct; + +-#ifdef __GNU_LIBRARY__ ++#if defined(__GNU_LIBRARY__) || defined(__NetBSD__) + /* 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 |