summaryrefslogtreecommitdiff
path: root/source4/build/m4/rewrite.m4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-01-17 11:45:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:08:57 -0500
commit4eb45fd96b895d866b59ac2c29038c5866bc98c2 (patch)
treefd84dec772c6cc98b012db9ee51b21246a704a73 /source4/build/m4/rewrite.m4
parent9ce8fde43a0066279b3650f7af6ca3eb5ce688c9 (diff)
downloadsamba-4eb45fd96b895d866b59ac2c29038c5866bc98c2.tar.gz
samba-4eb45fd96b895d866b59ac2c29038c5866bc98c2.tar.bz2
samba-4eb45fd96b895d866b59ac2c29038c5866bc98c2.zip
r4800: proper fix for the _GNU_SOURCE problem with comparison_fn_t
(This used to be commit 4181b38fac426cfc786e52cdd43fdeddbc26651f)
Diffstat (limited to 'source4/build/m4/rewrite.m4')
-rw-r--r--source4/build/m4/rewrite.m412
1 files changed, 1 insertions, 11 deletions
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 <stdlib.h>
int list_find(const void *needle,
const void *base, size_t nmemb, size_t size, comparison_fn_t comp_fn)