From 9ce8fde43a0066279b3650f7af6ca3eb5ce688c9 Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Mon, 17 Jan 2005 09:32:11 +0000 Subject: 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) --- source4/build/m4/rewrite.m4 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4') 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 int list_find(const void *needle, const void *base, size_t nmemb, size_t size, comparison_fn_t comp_fn) -- cgit