about summary refs log tree commit diff
path: root/converter/other/giftopnm.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2014-08-24 03:10:57 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2014-08-24 03:10:57 +0000
commit4202f1180bb6951338e094912586c9780ec8b044 (patch)
treef95e66fe88343ff49822dc5ccb2da19fde86a828 /converter/other/giftopnm.c
parent1758db773edd8b472ca4927930e148a92bbfaca1 (diff)
downloadnetpbm-mirror-4202f1180bb6951338e094912586c9780ec8b044.tar.gz
netpbm-mirror-4202f1180bb6951338e094912586c9780ec8b044.tar.xz
netpbm-mirror-4202f1180bb6951338e094912586c9780ec8b044.zip
Declare _XOPEN_SOURCE >= 500 to make strdup defined
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2257 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/giftopnm.c')
-rw-r--r--converter/other/giftopnm.c1
1 files changed, 1 insertions, 0 deletions
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>