From: Michael Lee Date: Wed, 25 Jan 2017 17:36:05 +0000 (-0800) Subject: Re-Gate setenv/unsetenv X-Git-Tag: v2017.03.06.00~80 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2eab3687311d467bdce69c065547a6b21c0cef8d;p=folly.git 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 --- 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 }