21 #if defined(__APPLE__) 22 #if __has_include(<crt_externs.h>) 23 #include <crt_externs.h> 34 #define PATH_MAX _MAX_PATH 35 #define MAXPATHLEN _MAX_PATH 37 char* mktemp(
char* tn);
38 char* mkdtemp(
char* tn);
39 int mkstemp(
char* tn);
40 char* realpath(
const char* path,
char* resolved_path);
41 int setenv(
const char*
name,
const char*
value,
int overwrite);
42 int unsetenv(
const char*
name);
43 #elif defined(__APPLE__) 45 #if !__has_include(<crt_externs.h>) 46 char*** _NSGetEnviron(
void);
48 #define environ (*_NSGetEnviron()) 51 #if !__linux__ && !FOLLY_MOBILE
static const char *const value