summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibuv/src/unix/bsd-ifaddrs.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-09-22 18:10:43 (GMT)
committerBrad King <brad.king@kitware.com>2022-09-27 13:50:16 (GMT)
commitff82df301c6db009200cbe3869fa03b86a573253 (patch)
treedf3700f506d1f03ce8176bc3fd3e8aa872630cce /Utilities/cmlibuv/src/unix/bsd-ifaddrs.c
parentcfe8fd64217d42c7a5c8a12c65feddbace86ce21 (diff)
parenta23da1559648995998343f3ae63076db736b55a5 (diff)
downloadCMake-ff82df301c6db009200cbe3869fa03b86a573253.zip
CMake-ff82df301c6db009200cbe3869fa03b86a573253.tar.gz
CMake-ff82df301c6db009200cbe3869fa03b86a573253.tar.bz2
Merge branch 'upstream-libuv' into update-libuv
* upstream-libuv: libuv 2022-07-12 (0c1fa696)
Diffstat (limited to 'Utilities/cmlibuv/src/unix/bsd-ifaddrs.c')
-rw-r--r--Utilities/cmlibuv/src/unix/bsd-ifaddrs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Utilities/cmlibuv/src/unix/bsd-ifaddrs.c b/Utilities/cmlibuv/src/unix/bsd-ifaddrs.c
index e48934b..11ca955 100644
--- a/Utilities/cmlibuv/src/unix/bsd-ifaddrs.c
+++ b/Utilities/cmlibuv/src/unix/bsd-ifaddrs.c
@@ -27,7 +27,7 @@
#include <ifaddrs.h>
#include <net/if.h>
-#if !defined(__CYGWIN__) && !defined(__MSYS__)
+#if !defined(__CYGWIN__) && !defined(__MSYS__) && !defined(__GNU__)
#include <net/if_dl.h>
#endif
@@ -40,7 +40,7 @@ static int uv__ifaddr_exclude(struct ifaddrs *ent, int exclude_type) {
return 1;
if (ent->ifa_addr == NULL)
return 1;
-#if !defined(__CYGWIN__) && !defined(__MSYS__)
+#if !defined(__CYGWIN__) && !defined(__MSYS__) && !defined(__GNU__)
/*
* If `exclude_type` is `UV__EXCLUDE_IFPHYS`, return whether `sa_family`
* equals `AF_LINK`. Otherwise, the result depends on the operating
@@ -69,7 +69,7 @@ int uv_interface_addresses(uv_interface_address_t** addresses, int* count) {
struct ifaddrs* addrs;
struct ifaddrs* ent;
uv_interface_address_t* address;
-#if !(defined(__CYGWIN__) || defined(__MSYS__))
+#if !(defined(__CYGWIN__) || defined(__MSYS__)) && !defined(__GNU__)
int i;
#endif
@@ -126,7 +126,7 @@ int uv_interface_addresses(uv_interface_address_t** addresses, int* count) {
address++;
}
-#if !(defined(__CYGWIN__) || defined(__MSYS__))
+#if !(defined(__CYGWIN__) || defined(__MSYS__)) && !defined(__GNU__)
/* Fill in physical addresses for each interface */
for (ent = addrs; ent != NULL; ent = ent->ifa_next) {
if (uv__ifaddr_exclude(ent, UV__EXCLUDE_IFPHYS))