]> The Tcpdump Group git mirrors - libpcap/commit
Simplify the use of <sys/sockio.h>.
authorDenis Ovsienko <[email protected]>
Tue, 11 Feb 2025 15:52:53 +0000 (15:52 +0000)
committerDenis Ovsienko <[email protected]>
Wed, 12 Feb 2025 22:52:28 +0000 (22:52 +0000)
commit41cfbc1f9054a2faca246e504b847f00deca52ef
tree05d74905cdb2891f205c39523bb0be87254f861b
parentd4fbde71834ec9e6e851265ff1f38553f192ae62
Simplify the use of <sys/sockio.h>.

In fad-gifc.c do not try including <sys/sockio.h>: the .c file is for
AIX 7 and HP-UX 11 only, and these OSes do not have the header, so the
guarded block is dead code.  Most other files that need the SIOCGIF*
macros are sufficiently OS-specific to know whether to include
<sys/sockio.h>, the only exception is pcap.c, which needs to compile on
all platforms.  Solve this by including <sys/sockio.h> on illumos, Haiku
and Solaris only.

These changes make HAVE_SYS_SOCKIO_H unused, so remove respective header
checks from Autoconf and CMake.  While at it, include <sys/ioctl.h> from
pcap-netmap.c for consistency.
CMakeLists.txt
cmakeconfig.h.in
configure.ac
fad-gifc.c
pcap-netmap.c
pcap.c