]> granicus.if.org Git - strace/commitdiff
Cleanup netipx/ipx.h availability check
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 19 Jun 2016 22:02:45 +0000 (22:02 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 19 Jun 2016 22:02:45 +0000 (22:02 +0000)
* configure.ac (AC_CHECK_HEADERS): Add netipx/ipx.h.
* net.c: Check for HAVE_NETIPX_IPX_H instead of __GLIBC__.

configure.ac
net.c

index 56c9b30ed441a0a1f59088491f115b6c62f4a837..9eccde9480988db61caacb4c760ba2fe319cbd4b 100644 (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
diff --git a/net.c b/net.c
index 124ac8dc8d6784ebf2cfd9fef44ffc00c103ab7a..1a6c265f692bdd2489a1906d9f009691816627e7 100644 (file)
--- a/net.c
+++ b/net.c
@@ -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>