Disable EnvUtil::setAsCurrentEnvironment() on platforms without clearenv()
authorChristopher Dykes <cdykes@fb.com>
Wed, 5 Apr 2017 19:50:28 +0000 (12:50 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 5 Apr 2017 19:52:23 +0000 (12:52 -0700)
commit2d2d3d3f923a6efb92ad2d17b10098b33ea68d02
treeb61cb950ad9e46ddf130988f6a343837891ae379
parentd6cd4a4a1502a57022ecfd83a988b87512613c06
Disable EnvUtil::setAsCurrentEnvironment() on platforms without clearenv()

Summary:
Implementing `clearenv()` correctly on multiple OS's without relying on underlying implementation details is significantly more complicated, and this is preventing being able to build on OSX.
This function isn't actually used anywhere currently.

Reviewed By: yfeldblum

Differential Revision: D4832473

fbshipit-source-id: a80aabb5a223264746ab45e3138d065bce5fe99c
folly/experimental/EnvUtil.cpp
folly/experimental/EnvUtil.h
folly/experimental/test/EnvUtilTest.cpp