We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 292ea0e commit 79d6f45Copy full SHA for 79d6f45
src/randomenv.cpp
@@ -57,8 +57,12 @@
57
#include <sys/auxv.h>
58
#endif
59
60
-#ifndef WIN32
61
-extern char** environ; // NOLINT(readability-redundant-declaration): Necessary on some platforms
+#if defined(__APPLE__) || \
+ defined(__FreeBSD__) || \
62
+ defined(__NetBSD__) || \
63
+ defined(__OpenBSD__) || \
64
+ defined(__illumos__)
65
+extern char** environ; // NOLINT(readability-redundant-declaration): Necessary on the above platforms
66
67
68
namespace {
0 commit comments