projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86c8e94
)
Declare missing environ variable
author
Christopher Dolan
<chris@codingstream.org>
Tue, 8 Sep 2015 01:18:45 +0000
(18:18 -0700)
committer
facebook-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
patch
|
blob
|
history
diff --git
a/folly/experimental/TestUtil.cpp
b/folly/experimental/TestUtil.cpp
index 4ff1cf32cbdced29eb8fb52b96dde7619a79153c..dbdd7bd7070b6c9a55d619fc1bb435b095c52c43 100644
(file)
--- 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 {