diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2018-04-26 02:25:42 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2018-04-26 02:25:42 +0000 |
commit | 144a492bd8d05c363a5ebd337aa9ec04eed31853 (patch) | |
tree | 34836d2a2f89dc06d347d3b6e60189013ef2f177 /generator/pbmtextps.c | |
parent | 2e574549bfd75c44dfcf6249728e969698f25f45 (diff) | |
download | netpbm-mirror-144a492bd8d05c363a5ebd337aa9ec04eed31853.tar.gz netpbm-mirror-144a492bd8d05c363a5ebd337aa9ec04eed31853.tar.xz netpbm-mirror-144a492bd8d05c363a5ebd337aa9ec04eed31853.zip |
Switch from _BSD_SOURCE to _XOPEN_SOURCE 500 to get strdup(), because the combination of _BSD_SOURCE and _XOPEN_SOURCE causes nstring.h to refer to strcasecmp but OpenBSD C library not to define strcasecmp, causing this to fail to compile
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3218 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'generator/pbmtextps.c')
-rw-r--r-- | generator/pbmtextps.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/generator/pbmtextps.c b/generator/pbmtextps.c index 5ed9b1a8..f543618d 100644 --- a/generator/pbmtextps.c +++ b/generator/pbmtextps.c @@ -25,9 +25,8 @@ * http://partners.adobe.com/public/developer/ps/index_specs.html */ -#define _DEFAULT_SOURCE /* New name for SVID & BSD source defines */ -#define _XOPEN_SOURCE /* Make sure popen() is in stdio.h */ -#define _BSD_SOURCE /* Make sure stdrup() is in string.h */ +#define _XOPEN_SOURCE 500 + /* Make sure popen() is in stdio.h, strdup() is in string.h */ #include <unistd.h> #include <stdio.h> #include <stdlib.h> |