summaryrefslogtreecommitdiff
path: root/source4/build/m4
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2005-01-17 09:32:11 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:08:57 -0500
commit9ce8fde43a0066279b3650f7af6ca3eb5ce688c9 (patch)
tree883518a3fc6b4e5ffbba5816dca11ab92bfe85e1 /source4/build/m4
parent31778ba8d2373d6d24b9633ab0f4902a5c5edc6a (diff)
downloadsamba-9ce8fde43a0066279b3650f7af6ca3eb5ce688c9.tar.gz
samba-9ce8fde43a0066279b3650f7af6ca3eb5ce688c9.tar.bz2
samba-9ce8fde43a0066279b3650f7af6ca3eb5ce688c9.zip
r4799: comparison_fn_t is under __USE_GNU on GNU systems, therefore, we need _GNU_SOURCE defined in the test
(This used to be commit b4200a462354cb605eb6af41427027147798de6e)
Diffstat (limited to 'source4/build/m4')
-rw-r--r--source4/build/m4/rewrite.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/build/m4/rewrite.m4 b/source4/build/m4/rewrite.m4
index c906af8b10..268b07b297 100644
--- a/source4/build/m4/rewrite.m4
+++ b/source4/build/m4/rewrite.m4
@@ -971,6 +971,11 @@ 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)