Skip to content

Commit 4783115

Browse files
committed
net: add ifaddrs.h include
1 parent 879215e commit 4783115

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
@@ -31,6 +31,10 @@
3131
#include <fcntl.h>
3232
#endif
3333

34+
#if HAVE_DECL_GETIFADDRS && HAVE_DECL_FREEIFADDRS
35+
#include <ifaddrs.h>
36+
#endif
37+
3438
#ifdef USE_POLL
3539
#include <poll.h>
3640
#endif

0 commit comments

Comments
 (0)