net: add ifaddrs.h include

Github-Pull: #21486
Rebased-From: 4783115fd4cccb46a7f8c592b34fa7c094c29410
This commit is contained in:
fanquake 2021-03-26 12:53:05 +08:00
parent f6896dfde7
commit 1a9a2cb7dc
No known key found for this signature in database
GPG Key ID: 2EEB9F5CC09526C1

View File

@ -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