diff options
author | fanquake <fanquake@gmail.com> | 2021-03-26 12:53:05 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2021-03-29 11:09:44 +0800 |
commit | 4783115fd4cccb46a7f8c592b34fa7c094c29410 (patch) | |
tree | 7841753580bd0099a53e31d46cd09e9096a032c6 /src/net.cpp | |
parent | 879215e665a9f348c8d3fa92701c34065bc86a69 (diff) |
net: add ifaddrs.h include
Diffstat (limited to 'src/net.cpp')
-rw-r--r-- | src/net.cpp | 4 |
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 |