From: Andrew Stormont Date: Mon, 13 Aug 2018 13:39:16 +0000 (+0100) Subject: Fix solaris build X-Git-Tag: v3.6.3~27 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=6842d62046b638344ccb632c87c53878d6d2ffef;p=pciutils.git Fix solaris build --- 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 #include #include