AC_USUAL_PORT_CHECK: Use AC_USE_SYSTEM_EXTENSIONS
authorMarko Kreen <markokr@gmail.com>
Fri, 25 Mar 2011 19:35:19 +0000 (21:35 +0200)
committerMarko Kreen <markokr@gmail.com>
Fri, 25 Mar 2011 20:35:32 +0000 (22:35 +0200)
This gets rid of _GNU_SOURCE and __EXTENSIONS__

Unfortunately it does not handle _XPG4_2 and WINVER...

m4/usual.m4
usual/base.h

index 4bfe7e0dc2359d4de3a2cbaa5b8ed302eb11b7a8..0e7771b71c4ba3624f3306398213ba46b1312d38 100644 (file)
@@ -34,9 +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 0db0dd310e2eaec919850b8205a999d08ab05560..1f2ece433d4ea2984eed881ffa2ceb5b27bc8e63 100644 (file)
@@ -30,7 +30,6 @@
 /* solaris is broken otherwise */
 #if defined(__sun)
 #define _XPG4_2
-#define __EXTENSIONS__
 #endif
 
 #include <sys/types.h>