From 6842d62046b638344ccb632c87c53878d6d2ffef Mon Sep 17 00:00:00 2001 From: Andrew Stormont Date: Mon, 13 Aug 2018 14:39:16 +0100 Subject: [PATCH] Fix solaris build --- lib/names-net.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.39.2