svn commit: samba r4800 - in branches/SAMBA_4_0/source/build/m4: .
tridge at samba.org
tridge at samba.org
Mon Jan 17 11:45:12 GMT 2005
Author: tridge
Date: 2005-01-17 11:45:12 +0000 (Mon, 17 Jan 2005)
New Revision: 4800
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4800
Log:
proper fix for the _GNU_SOURCE problem with comparison_fn_t
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 09:32:11 UTC (rev 4799)
+++ branches/SAMBA_4_0/source/build/m4/rewrite.m4 2005-01-17 11:45:12 UTC (rev 4800)
@@ -8,12 +8,7 @@
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 @@
# 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)
More information about the samba-cvs
mailing list