Add configure check for <sys/sockio.h>
Some systems need <sys/sockio.h> for the SIOCGIFCONF ioctl - this switches to using a proper configure check for that header rather than just assuming it'll be there if we can't find SIOCGIFCONF. Should be more robust.
This commit is contained in:
@@ -24,11 +24,10 @@ CVS_REVISION(commands_c)
|
||||
#else /* IPV6 */
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
#ifndef SIOCGIFCONF
|
||||
#ifdef HAVE_SYS_SOCKIO_H
|
||||
#include <sys/sockio.h>
|
||||
#endif /* SIOCGIFCONF */
|
||||
#endif /* HAVE_SYS_SOCKIO_H */
|
||||
|
||||
/* Some systems call it SIOCGIFCONF, some call it OSIOCGIFCONF */
|
||||
#if defined(OSIOCGIFCONF)
|
||||
|
||||
Reference in New Issue
Block a user