Remove warnings on Linux with glibc 2.20
authorUlrich Wilkens <mail@uwilkens.de>
Fri, 8 May 2015 22:39:05 +0000 (00:39 +0200)
committerJon Trulson <jon@radscan.com>
Sat, 9 May 2015 22:23:05 +0000 (16:23 -0600)
cde/config/cf/linux.cf

index 858627edf2d2b5ae7c58a225e90079186daa62a2..6d22a79ad49a72f33612a321437ea7f7f8d5627c 100644 (file)
@@ -161,14 +161,14 @@ TIRPCLIB =
 #endif
 
 #if LinuxCLibMajorVersion < 6
-# define LinuxSourceDefines    -D_POSIX_SOURCE \
+# define LinuxSourceDefines    -D_POSIX_SOURCE -D_DEFAULT_SOURCE \
                                -D_BSD_SOURCE -D_SVID_SOURCE LinuxLocaleDefines
 # ifndef HasLibCrypt
 #  define HasLibCrypt          NO
 # endif
 
 #else
-# define LinuxSourceDefines    -D_POSIX_SOURCE \
+# define LinuxSourceDefines    -D_POSIX_SOURCE -D_DEFAULT_SOURCE \
                                -D_BSD_SOURCE -D_SVID_SOURCE \
                                -D__NO_STRING_INLINES -D__NO_MATH_INLINES \
                                LinuxLocaleDefines