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>
extern char **environ;
#endif
#endif
+#endif /* defined(HAVE_DECL_ENVIRON) */
#ifndef HAVE_SETENV
#define setenv rep_setenv