svn commit: samba r22265 - in branches/SAMBA_3_0_25/source/lib/replace: .

metze at samba.org metze at samba.org
Mon Apr 16 12:44:14 GMT 2007


Author: metze
Date: 2007-04-16 12:44:13 +0000 (Mon, 16 Apr 2007)
New Revision: 22265

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

Log:
merge from samba4:

use AC_HAVE_DECL() because AC_CHECK_DECLS() defines to 1 or 0
and #ifndef doesn't work.

metze
Modified:
   branches/SAMBA_3_0_25/source/lib/replace/libreplace.m4
   branches/SAMBA_3_0_25/source/lib/replace/replace.h


Changeset:
Modified: branches/SAMBA_3_0_25/source/lib/replace/libreplace.m4
===================================================================
--- branches/SAMBA_3_0_25/source/lib/replace/libreplace.m4	2007-04-16 12:43:54 UTC (rev 22264)
+++ branches/SAMBA_3_0_25/source/lib/replace/libreplace.m4	2007-04-16 12:44:13 UTC (rev 22265)
@@ -263,7 +263,7 @@
 AC_CHECK_TYPE(comparison_fn_t, 
 [AC_DEFINE(HAVE_COMPARISON_FN_T, 1,[Whether or not we have comparison_fn_t])])
 
-AC_CHECK_DECLS([setenv, unsetenv])
+AC_HAVE_DECL(setenv, [#include <stdlib.h>])
 AC_CHECK_FUNCS(setenv unsetenv)
 
 AC_CHECK_FUNCS(strnlen)

Modified: branches/SAMBA_3_0_25/source/lib/replace/replace.h
===================================================================
--- branches/SAMBA_3_0_25/source/lib/replace/replace.h	2007-04-16 12:43:54 UTC (rev 22264)
+++ branches/SAMBA_3_0_25/source/lib/replace/replace.h	2007-04-16 12:44:13 UTC (rev 22265)
@@ -162,7 +162,7 @@
 #define setenv rep_setenv
 int rep_setenv(const char *name, const char *value, int overwrite);
 #else
-#ifndef HAVE_DECL_SETENV
+#ifndef HAVE_SETENV_DECL
 int setenv(const char *name, const char *value, int overwrite);
 #endif
 #endif



More information about the samba-cvs mailing list