aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2021-03-26 12:53:05 +0800
committerfanquake <fanquake@gmail.com>2021-03-29 11:09:44 +0800
commit4783115fd4cccb46a7f8c592b34fa7c094c29410 (patch)
tree7841753580bd0099a53e31d46cd09e9096a032c6 /src/net.cpp
parent879215e665a9f348c8d3fa92701c34065bc86a69 (diff)
net: add ifaddrs.h include
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 3b1ebede98..c4d87c6f6a 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -31,6 +31,10 @@
#include <fcntl.h>
#endif
+#if HAVE_DECL_GETIFADDRS && HAVE_DECL_FREEIFADDRS
+#include <ifaddrs.h>
+#endif
+
#ifdef USE_POLL
#include <poll.h>
#endif