summaryrefslogtreecommitdiff
path: root/source3/lib/replace/libreplace.m4
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/replace/libreplace.m4')
-rw-r--r--source3/lib/replace/libreplace.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/replace/libreplace.m4 b/source3/lib/replace/libreplace.m4
index ab7c83f9dd..e9b19b7cf5 100644
--- a/source3/lib/replace/libreplace.m4
+++ b/source3/lib/replace/libreplace.m4
@@ -263,7 +263,7 @@ AC_CHECK_HEADERS([sys/param.h limits.h])
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)