Author: ab
Date: 2005-01-17 09:32:11 +0000 (Mon, 17 Jan 2005)
New Revision: 4799

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4799

Log:
comparison_fn_t is under __USE_GNU on GNU systems, therefore, we need 
_GNU_SOURCE defined in the test
Modified:
   branches/SAMBA_4_0/source/build/m4/rewrite.m4


Changeset:
Modified: branches/SAMBA_4_0/source/build/m4/rewrite.m4
===================================================================
--- branches/SAMBA_4_0/source/build/m4/rewrite.m4       2005-01-17 06:37:47 UTC 
(rev 4798)
+++ branches/SAMBA_4_0/source/build/m4/rewrite.m4       2005-01-17 09:32:11 UTC 
(rev 4799)
@@ -971,6 +971,11 @@
 # 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)

Reply via email to