]> mj.ucw.cz Git - pciutils.git/commitdiff
Fix solaris build
authorAndrew Stormont <astormont@racktopsystems.com>
Mon, 13 Aug 2018 13:39:16 +0000 (14:39 +0100)
committerMartin Mares <mj@ucw.cz>
Mon, 31 Dec 2018 14:10:25 +0000 (15:10 +0100)
lib/names-net.c

index dfac7850dfbcff9b10f421d091d62b94268e8dd1..655b4861bc8c81a21ed3f9ee30009dc91999ff6d 100644 (file)
 
 #ifdef PCI_USE_DNS
 
+/*
+ * Our definition of BYTE_ORDER confuses arpa/nameser_compat.h on
+ * Solaris so we must undef it before including arpa/nameser.h.
+ */
+#ifdef PCI_OS_SUNOS
+#undef BYTE_ORDER
+#endif
+
 #include <netinet/in.h>
 #include <arpa/nameser.h>
 #include <resolv.h>