Stop using AC_USE_SYSTEM_EXTENSIONS
authorMarko Kreen <markokr@gmail.com>
Tue, 29 Nov 2011 20:48:19 +0000 (22:48 +0200)
committerMarko Kreen <markokr@gmail.com>
Tue, 29 Nov 2011 20:48:19 +0000 (22:48 +0200)
It tries to do too much too early.

m4/usual.m4
usual/base.h

index 14cb3e04c4411293bf3514892db579917fd28029..14c54da180b83bc5d5b58e9a79c062d58538fec3 100644 (file)
@@ -34,10 +34,10 @@ dnl Set the flags before any feature tests.
 if test "$PORTNAME" = "win32"; then
   AC_DEFINE([WIN32_LEAN_AND_MEAN], [1], [Define to request cleaner win32 headers.])
   AC_DEFINE([WINVER], [0x0501], [Define to max win32 API version (0x0501=XP).])
+else
+  AC_DEFINE([_GNU_SOURCE], [1], [Define to get working glibc.])
 fi
 
-dnl Request full API-s
-AC_USE_SYSTEM_EXTENSIONS
 ])
 
 
index 36eb359987b9ae5ef12fac60ec96d9e512d8c4a7..8fa652d46c3f8ae1b3896b0daec566e8bdb28183 100644 (file)
@@ -30,6 +30,7 @@
 /* solaris is broken otherwise */
 #if defined(__sun)
 #define _XPG4_2
+#define __EXTENSIONS__
 #endif
 
 #include <sys/types.h>