aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Stormont <astormont@racktopsystems.com>2018-08-13 14:39:16 +0100
committerMartin Mares <mj@ucw.cz>2018-12-31 15:10:25 +0100
commit6842d62046b638344ccb632c87c53878d6d2ffef (patch)
tree2de4cb072da2a068c4549ff2592afb51acd9f9f5
parentbbc4a88c8bcfb6c5397597be1fc3a2634189003e (diff)
downloadpciutils-6842d62046b638344ccb632c87c53878d6d2ffef.tar.gz
Fix solaris build
-rw-r--r--lib/names-net.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/names-net.c b/lib/names-net.c
index dfac785..655b486 100644
--- a/lib/names-net.c
+++ b/lib/names-net.c
@@ -15,6 +15,14 @@
#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>