diff options
author | fanquake <fanquake@gmail.com> | 2021-03-26 12:53:05 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2021-04-06 17:36:11 +0800 |
commit | 1a9a2cb7dcc60781a3cbca3a7846ff153143260c (patch) | |
tree | cde00f3db0dc99823d3edbcb1e8deea231da211d | |
parent | f6896dfde73bb37f4f0f0f9bfe9855d4fe9e9fe5 (diff) |
net: add ifaddrs.h include
Github-Pull: #21486
Rebased-From: 4783115fd4cccb46a7f8c592b34fa7c094c29410
-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 1fd913eb64..15e52de94d 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -28,6 +28,10 @@ #include <fcntl.h> #endif +#if HAVE_DECL_GETIFADDRS && HAVE_DECL_FREEIFADDRS +#include <ifaddrs.h> +#endif + #ifdef USE_POLL #include <poll.h> #endif |