random: scope environ extern to macOS, BSDs and Illumos
These platforms fail to compile with it removed.
This commit is contained in:
1 file changed
+6
-2
+6
-2
@@ -57,8 +57,12 @@
|
|||||||
#include <sys/auxv.h>
|
#include <sys/auxv.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef WIN32
|
#if defined(__APPLE__) || \
|
||||||
extern char** environ; // NOLINT(readability-redundant-declaration): Necessary on some platforms
|
defined(__FreeBSD__) || \
|
||||||
|
defined(__NetBSD__) || \
|
||||||
|
defined(__OpenBSD__) || \
|
||||||
|
defined(__illumos__)
|
||||||
|
extern char** environ; // NOLINT(readability-redundant-declaration): Necessary on the above platforms
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|||||||
Reference in new issue
Block a user