We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a039d6 commit 414f405Copy full SHA for 414f405
src/randomenv.cpp
@@ -42,7 +42,7 @@
42
#include <mach/mach.h>
43
#include <mach/mach_time.h>
44
#endif
45
-#if HAVE_DECL_GETIFADDRS
+#if HAVE_DECL_GETIFADDRS && HAVE_DECL_FREEIFADDRS
46
#include <ifaddrs.h>
47
48
#if HAVE_SYSCTL
@@ -378,7 +378,7 @@ void RandAddStaticEnv(CSHA512& hasher)
378
hasher.Write((const unsigned char*)hname, strnlen(hname, 256));
379
}
380
381
382
// Network interfaces
383
struct ifaddrs *ifad = NULL;
384
getifaddrs(&ifad);
0 commit comments