mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-19 20:20:00 +01:00
random: scope environ extern to macOS, BSDs and Illumos
These platforms fail to compile with it removed.
This commit is contained in:
@@ -57,8 +57,12 @@
|
||||
#include <sys/auxv.h>
|
||||
#endif
|
||||
|
||||
#ifndef WIN32
|
||||
extern char** environ; // NOLINT(readability-redundant-declaration): Necessary on some platforms
|
||||
#if defined(__APPLE__) || \
|
||||
defined(__FreeBSD__) || \
|
||||
defined(__NetBSD__) || \
|
||||
defined(__OpenBSD__) || \
|
||||
defined(__illumos__)
|
||||
extern char** environ; // NOLINT(readability-redundant-declaration): Necessary on the above platforms
|
||||
#endif
|
||||
|
||||
namespace {
|
||||
|
||||
Reference in New Issue
Block a user