From f0fdd87aa9b1074b41bbaa3257fb398deacc6e16 Mon Sep 17 00:00:00 2001
From: Christopher Dolan <chris@codingstream.org>
Date: Mon, 7 Sep 2015 18:18:45 -0700
Subject: [PATCH] Declare missing environ variable

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 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/folly/experimental/TestUtil.cpp b/folly/experimental/TestUtil.cpp
index 4ff1cf32..dbdd7bd7 100644
--- a/folly/experimental/TestUtil.cpp
+++ b/folly/experimental/TestUtil.cpp
@@ -28,6 +28,10 @@
 #include <folly/FileUtil.h>
 #include <folly/String.h>
 
+#ifndef _MSC_VER
+extern char** environ;
+#endif
+
 namespace folly {
 namespace test {
 
-- 
2.34.1