From 2eab3687311d467bdce69c065547a6b21c0cef8d Mon Sep 17 00:00:00 2001 From: Michael Lee Date: Wed, 25 Jan 2017 09:36:05 -0800 Subject: [PATCH] Re-Gate setenv/unsetenv Summary: `setenv`/`unsetenv` is not always declared the same way on all of the places folly is compiled. Reviewed By: matbd Differential Revision: D4462056 fbshipit-source-id: 6dd68f6fc5a6a435f145cbaa43bee02b5fa7170c --- folly/portability/Environment.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/folly/portability/Environment.h b/folly/portability/Environment.h index ae8dc61c..d69cad5c 100755 --- a/folly/portability/Environment.h +++ b/folly/portability/Environment.h @@ -21,7 +21,8 @@ extern "C" { #ifndef _WIN32 extern char** environ; -#endif +#else int setenv(const char* name, const char* value, int overwrite); int unsetenv(const char* name); +#endif } -- 2.34.1