refactor: Drop unneeded <sys/types.h> include before <ifaddrs.h>

Pure `getifaddrs()`/`freeifaddrs()` calls do not need any type
definitions beyond those provided by `<ifaddrs.h>` itself.

The subsequent `struct ifaddrs` processing in `netif.cpp` does not
involve any symbols from `<sys/types.h>`.
This commit is contained in:
Hennadii Stepanov
2026-07-04 17:12:54 +01:00
parent 2063f02bd5
commit 22c328d388
2 changed files with 0 additions and 2 deletions

View File

@@ -15,7 +15,6 @@ function(test_append_socket_library target)
endif()
set(check_socket_source "
#include <sys/types.h>
#include <ifaddrs.h>
int main() {

View File

@@ -30,7 +30,6 @@
#endif
#ifdef HAVE_IFADDRS
#include <sys/types.h>
#include <ifaddrs.h>
#endif