Skip to content

Commit 1a9a2cb

Browse files
committed
net: add ifaddrs.h include
Github-Pull: #21486 Rebased-From: 4783115
1 parent f6896df commit 1a9a2cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/net.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
#include <fcntl.h>
2929
#endif
3030

31+
#if HAVE_DECL_GETIFADDRS && HAVE_DECL_FREEIFADDRS
32+
#include <ifaddrs.h>
33+
#endif
34+
3135
#ifdef USE_POLL
3236
#include <poll.h>
3337
#endif

0 commit comments

Comments
 (0)