From 4eb45fd96b895d866b59ac2c29038c5866bc98c2 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 17 Jan 2005 11:45:12 +0000 Subject: r4800: proper fix for the _GNU_SOURCE problem with comparison_fn_t (This used to be commit 4181b38fac426cfc786e52cdd43fdeddbc26651f) --- source4/build/m4/rewrite.m4 | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'source4/build') diff --git a/source4/build/m4/rewrite.m4 b/source4/build/m4/rewrite.m4 index 268b07b297..a6addcf91a 100644 --- a/source4/build/m4/rewrite.m4 +++ b/source4/build/m4/rewrite.m4 @@ -8,12 +8,7 @@ AC_SUBST(LDSHFLAGS) AC_SUBST(SONAMEFLAG) AC_SUBST(PICFLAG) -AH_VERBATIM([_GNU_SOURCE], -[/* Enable GNU extensions on systems that have them. */ -#ifndef _GNU_SOURCE -# define _GNU_SOURCE -#endif]) - +AC_DEFINE([_GNU_SOURCE],[],[Pull in GNU extensions]) AC_SYS_LARGEFILE # @@ -971,11 +966,6 @@ fi # Check for comparison_fn_t AC_CACHE_CHECK([for comparison_fn_t],samba_cv_HAVE_COMPARISON_FN_T,[ AC_TRY_COMPILE([ -/* Enable GNU extensions on systems that have them */ -/* as comparison_fn_t is defined under __USE_GNU on these */ -#ifndef _GNU_SOURCE -# define _GNU_SOURCE -#endif #include int list_find(const void *needle, const void *base, size_t nmemb, size_t size, comparison_fn_t comp_fn) -- cgit