mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
r22264: merge from samba4:
use AC_HAVE_DECL() because AC_CHECK_DECLS() defines to 1 or 0 and #ifndef doesn't work. metze (This used to be commit 66b0a6cc51a3987c489cc71a17c0da632bf6a6bc)
This commit is contained in:
parent
3678d69b82
commit
4341be4593
@ -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)
|
||||
|
@ -162,7 +162,7 @@ size_t rep_strnlen(const char *s, size_t n);
|
||||
#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
|
||||
|
Loading…
x
Reference in New Issue
Block a user