about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2016-11-16 22:33:34 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2016-11-16 22:33:34 +0000
commit75bc35899c2b97e2b8f7704247a81cb6c21998f5 (patch)
tree61ec931cd20b52a634ac22b689d829d9edf9a761 /lib
parent2935036dd0ac4e298a0ae88451c2e9aa8d1eb8e9 (diff)
downloadnetpbm-mirror-75bc35899c2b97e2b8f7704247a81cb6c21998f5.tar.gz
netpbm-mirror-75bc35899c2b97e2b8f7704247a81cb6c21998f5.tar.xz
netpbm-mirror-75bc35899c2b97e2b8f7704247a81cb6c21998f5.zip
Add poorly-named _DEFAULT_SOURCE to all files that had _BSD_SOURCE or _SVID_SOURCE, because for some reason GNU C library is replacing the latter with the former. This eliminates compiler warnings about _BSD_SOURCE/_SVID_SOURCE being deprecated
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2836 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib')
-rw-r--r--lib/colorname.c1
-rw-r--r--lib/libpam.c1
-rw-r--r--lib/libpamcolor.c1
-rw-r--r--lib/libpm.c1
-rw-r--r--lib/libppmcolor.c1
-rw-r--r--lib/libsystem.c1
-rw-r--r--lib/pmfileio.c1
-rw-r--r--lib/util/nstring.c1
8 files changed, 8 insertions, 0 deletions
diff --git a/lib/colorname.c b/lib/colorname.c
index 123de75e..fd265870 100644
--- a/lib/colorname.c
+++ b/lib/colorname.c
@@ -12,6 +12,7 @@
 ** implied warranty.
 */
 
+#define _DEFAULT_SOURCE 1  /* New name for SVID & BSD source defines */
 #define _BSD_SOURCE 1      /* Make sure strdup() is in string.h */
 #define _XOPEN_SOURCE 500  /* Make sure strdup() is in string.h */
 
diff --git a/lib/libpam.c b/lib/libpam.c
index cc6368e1..fa1be8f4 100644
--- a/lib/libpam.c
+++ b/lib/libpam.c
@@ -13,6 +13,7 @@
 */
 #define _FILE_OFFSET_BITS 64
 #define _LARGE_FILES  
+#define _DEFAULT_SOURCE 1  /* New name for SVID & BSD source defines */
 #define _BSD_SOURCE 1      /* Make sure strdup() is in string.h */
 #define _XOPEN_SOURCE 500  /* Make sure strdup() is in string.h */
 
diff --git a/lib/libpamcolor.c b/lib/libpamcolor.c
index f3ca9a86..06dd2493 100644
--- a/lib/libpamcolor.c
+++ b/lib/libpamcolor.c
@@ -14,6 +14,7 @@
 #define _FILE_OFFSET_BITS 64
 #define _LARGE_FILES  
 
+#define _DEFAULT_SOURCE 1  /* New name for SVID & BSD source defines */
 #define _BSD_SOURCE 1      /* Make sure strdup() is in string.h */
 #define _XOPEN_SOURCE 500  /* Make sure strdup() is in string.h */
 
diff --git a/lib/libpm.c b/lib/libpm.c
index 4374bbe3..d5bad7a4 100644
--- a/lib/libpm.c
+++ b/lib/libpm.c
@@ -8,6 +8,7 @@
   Netpbm library subroutines.
 **************************************************************************/
 
+#define _DEFAULT_SOURCE      /* New name for SVID & BSD source defines */
 #define _BSD_SOURCE          /* Make sure strdup is in string.h */
 #define _XOPEN_SOURCE 500    /* Make sure ftello, fseeko are defined */
 
diff --git a/lib/libppmcolor.c b/lib/libppmcolor.c
index aee8fd83..9a1ee5c1 100644
--- a/lib/libppmcolor.c
+++ b/lib/libppmcolor.c
@@ -9,6 +9,7 @@
 ** implied warranty.
 */
 
+#define _DEFAULT_SOURCE 1  /* New name for SVID & BSD source defines */
 #define _BSD_SOURCE 1      /* Make sure strdup() is in string.h */
 #define _XOPEN_SOURCE 500  /* Make sure strdup() is in string.h */
 
diff --git a/lib/libsystem.c b/lib/libsystem.c
index 9491c03a..4ff473dd 100644
--- a/lib/libsystem.c
+++ b/lib/libsystem.c
@@ -17,6 +17,7 @@
 
    Contributed to the public domain.
 =============================================================================*/
+#define _DEFAULT_SOURCE /* New name for SVID & BSD source defines */
 #define _XOPEN_SOURCE
 #define _BSD_SOURCE  /* Make SIGWINCH defined on OpenBSD */
 
diff --git a/lib/pmfileio.c b/lib/pmfileio.c
index 8176ae6a..035037ba 100644
--- a/lib/pmfileio.c
+++ b/lib/pmfileio.c
@@ -5,6 +5,7 @@
   These are external functions, unlike 'fileio.c', but are not
   particular to any Netpbm format.
 **************************************************************************/
+#define _DEFAULT_SOURCE /* New name for SVID & BSD source defines */
 #define _SVID_SOURCE
     /* Make sure P_tmpdir is defined in GNU libc 2.0.7 (_XOPEN_SOURCE 500
        does it in other libc's).  pm_config.h defines TMPDIR as P_tmpdir
diff --git a/lib/util/nstring.c b/lib/util/nstring.c
index 5644d3b9..6c28095f 100644
--- a/lib/util/nstring.c
+++ b/lib/util/nstring.c
@@ -113,6 +113,7 @@
  */
 
 
+#define _DEFAULT_SOURCE /* New name for SVID & BSD source defines */
 #define _XOPEN_SOURCE 500  /* Make sure strdup() is in string.h */
 #define _BSD_SOURCE  /* Make sure strdup() is in string.h */
 #define _GNU_SOURCE