mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
lib:replace: Check if HAVE_DECL_ENVIRON is defined first
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
parent
3be9ffe445
commit
63a48e6487
@ -272,6 +272,7 @@ char *rep_strndup(const char *s, size_t n);
|
||||
size_t rep_strnlen(const char *s, size_t n);
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_DECL_ENVIRON)
|
||||
#if !HAVE_DECL_ENVIRON
|
||||
#ifdef __APPLE__
|
||||
#include <crt_externs.h>
|
||||
@ -280,6 +281,7 @@ size_t rep_strnlen(const char *s, size_t n);
|
||||
extern char **environ;
|
||||
#endif
|
||||
#endif
|
||||
#endif /* defined(HAVE_DECL_ENVIRON) */
|
||||
|
||||
#ifndef HAVE_SETENV
|
||||
#define setenv rep_setenv
|
||||
|
Loading…
Reference in New Issue
Block a user