Commit c9a9cfcc by Jan Beich Committed by Commit Bot

`environ` needs to be declared for (at least) FreeBSD.

Declaring it unconditionally seems to build fine on all other platforms. Change-Id: I4c587d6ec47989f0d22588aca8883c4ef68f91c8 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1579917 Commit-Queue: Geoff Lang <geofflang@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent cb8f677c
...@@ -15,11 +15,9 @@ ...@@ -15,11 +15,9 @@
#include <sys/wait.h> #include <sys/wait.h>
#include <unistd.h> #include <unistd.h>
// On mac, environ is not declared anywhere: // On BSDs (including mac), environ is not declared anywhere:
// https://stackoverflow.com/a/31347357/912144 // https://stackoverflow.com/a/31347357/912144
#if defined(ANGLE_PLATFORM_APPLE)
extern char **environ; extern char **environ;
#endif
namespace angle namespace angle
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment