Declare missing environ variable
authorChristopher Dolan <chris@codingstream.org>
Tue, 8 Sep 2015 01:18:45 +0000 (18:18 -0700)
committerfacebook-github-bot-9 <folly-bot@fb.com>
Tue, 8 Sep 2015 02:20:17 +0000 (19:20 -0700)
Summary: Declaring `extern char** environ` in `experimental/TestUtil.cpp` fixes a compilation issue on OS X 10.10.
Closes #311

Reviewed By: @yfeldblum

Differential Revision: D2419037

Pulled By: @JoelMarcey

folly/experimental/TestUtil.cpp

index 4ff1cf32cbdced29eb8fb52b96dde7619a79153c..dbdd7bd7070b6c9a55d619fc1bb435b095c52c43 100644 (file)
 #include <folly/FileUtil.h>
 #include <folly/String.h>
 
+#ifndef _MSC_VER
+extern char** environ;
+#endif
+
 namespace folly {
 namespace test {