Cleanup netipx/ipx.h availability check

* configure.ac (AC_CHECK_HEADERS): Add netipx/ipx.h.
* net.c: Check for HAVE_NETIPX_IPX_H instead of __GLIBC__.
This commit is contained in:
Дмитрий Левин 2016-06-19 22:02:45 +00:00
parent 802cc28f39
commit ebda41a44a
2 changed files with 2 additions and 1 deletions

View File

@ -394,6 +394,7 @@ AC_CHECK_HEADERS(m4_normalize([
linux/utsname.h
mqueue.h
netinet/sctp.h
netipx/ipx.h
scsi/sg.h
stropts.h
sys/conf.h

2
net.c
View File

@ -46,7 +46,7 @@
#include <arpa/inet.h>
#include <net/if.h>
#include <asm/types.h>
#if defined(__GLIBC__)
#ifdef HAVE_NETIPX_IPX_H
# include <netipx/ipx.h>
#else
# include <linux/ipx.h>