diff options
Diffstat (limited to 'converter/other')
-rw-r--r-- | converter/other/cameratopam/cameratopam.c | 3 | ||||
-rw-r--r-- | converter/other/giftopnm.c | 1 | ||||
-rw-r--r-- | converter/other/ipdb.c | 1 | ||||
-rw-r--r-- | converter/other/pgmtoppm.c | 1 | ||||
-rw-r--r-- | converter/other/svgtopam.c | 1 |
5 files changed, 6 insertions, 1 deletions
diff --git a/converter/other/cameratopam/cameratopam.c b/converter/other/cameratopam/cameratopam.c index 71c9c7af..0a25686a 100644 --- a/converter/other/cameratopam/cameratopam.c +++ b/converter/other/cameratopam/cameratopam.c @@ -8,7 +8,8 @@ #define _BSD_SOURCE 1 /* Make sure string.h contains strdup() */ -#define _XOPEN_SOURCE /* Make sure unistd.h contains swab() */ +#define _XOPEN_SOURCE 500 + /* Make sure unistd.h contains swab(), string.h constains strdup() */ #include "pm_config.h" diff --git a/converter/other/giftopnm.c b/converter/other/giftopnm.c index 7d517aad..9a543532 100644 --- a/converter/other/giftopnm.c +++ b/converter/other/giftopnm.c @@ -19,6 +19,7 @@ describe the Lempel-Ziv base. */ +#define _XOPEN_SOURCE 500 /* Make sure strdup() is in string.h */ #define _BSD_SOURCE /* for strcaseeq */ #include <string.h> #include <assert.h> diff --git a/converter/other/ipdb.c b/converter/other/ipdb.c index eec4495a..d6bd6ef5 100644 --- a/converter/other/ipdb.c +++ b/converter/other/ipdb.c @@ -19,6 +19,7 @@ * Authors: Eric A. Howe (mu@trends.net) * Bryan Henderson, 2010 */ +#define _XOPEN_SOURCE 500 /* Make sure strdup() is in string.h */ #define _BSD_SOURCE /* Ensure strdup() is in <string.h> */ #include <assert.h> #include <time.h> diff --git a/converter/other/pgmtoppm.c b/converter/other/pgmtoppm.c index b556e0d2..f8a69424 100644 --- a/converter/other/pgmtoppm.c +++ b/converter/other/pgmtoppm.c @@ -10,6 +10,7 @@ ** implied warranty. */ +#define _XOPEN_SOURCE 500 /* Make sure strdup() is in string.h */ #define _BSD_SOURCE /* Make sure strdup() is in <string.h> */ #include <string.h> diff --git a/converter/other/svgtopam.c b/converter/other/svgtopam.c index 26530b9b..137f4732 100644 --- a/converter/other/svgtopam.c +++ b/converter/other/svgtopam.c @@ -26,6 +26,7 @@ ============================================================================*/ +#define _XOPEN_SOURCE 500 /* Make sure strdup() is in string.h */ #define _BSD_SOURCE /* Make sure strdup() is in <string.h> */ #define _POSIX_SOURCE /* Make sure fileno() is in <stdio.h> */ #include <assert.h> |