diff options
author | Andrew Stormont <astormont@racktopsystems.com> | 2018-08-13 14:39:16 +0100 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2018-12-31 15:10:25 +0100 |
commit | 6842d62046b638344ccb632c87c53878d6d2ffef (patch) | |
tree | 2de4cb072da2a068c4549ff2592afb51acd9f9f5 | |
parent | bbc4a88c8bcfb6c5397597be1fc3a2634189003e (diff) | |
download | pciutils-6842d62046b638344ccb632c87c53878d6d2ffef.tar.gz |
Fix solaris build
-rw-r--r-- | lib/names-net.c | 8 |
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> |