Skip to content

Commit

Permalink
Use "#include <ifaddrs.h>" unconditionally in InetInterface.cpp (#12334)
Browse files Browse the repository at this point in the history
  • Loading branch information
milezhacks authored and pull[bot] committed Apr 25, 2023
1 parent 2c7bbbb commit 7be38e5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/inet/InetInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,9 @@
#ifdef HAVE_SYS_SOCKIO_H
#include <sys/sockio.h>
#endif /* HAVE_SYS_SOCKIO_H */
#include <ifaddrs.h>
#include <net/if.h>
#include <sys/ioctl.h>
#ifdef __ANDROID__
#include "ifaddrs-android.h"
#else // !defined(__ANDROID__)
#include <ifaddrs.h>
#endif // !defined(__ANDROID__)
#endif // CHIP_SYSTEM_CONFIG_USE_SOCKETS && CHIP_SYSTEM_CONFIG_USE_BSD_IFADDRS

#if CHIP_SYSTEM_CONFIG_USE_ZEPHYR_NET_IF
Expand Down

0 comments on commit 7be38e5

Please sign in to comment.