summaryrefslogtreecommitdiffstats
path: root/contrib/tcpdump/print-sunrpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/tcpdump/print-sunrpc.c')
-rw-r--r--contrib/tcpdump/print-sunrpc.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/contrib/tcpdump/print-sunrpc.c b/contrib/tcpdump/print-sunrpc.c
index 565cbfd..5dd7a43 100644
--- a/contrib/tcpdump/print-sunrpc.c
+++ b/contrib/tcpdump/print-sunrpc.c
@@ -30,6 +30,21 @@ static const char rcsid[] _U_ =
#include "config.h"
#endif
+/*
+ * At least on HP-UX:
+ *
+ * 1) getrpcbynumber() is declared in <netdb.h>, not any of the RPC
+ * header files
+ *
+ * and
+ *
+ * 2) if _XOPEN_SOURCE_EXTENDED is defined, <netdb.h> doesn't declare
+ * it
+ *
+ * so we undefine it.
+ */
+#undef _XOPEN_SOURCE_EXTENDED
+
#include <tcpdump-stdinc.h>
#ifdef HAVE_GETRPCBYNUMBER
OpenPOWER on IntegriCloud