summaryrefslogtreecommitdiff
path: root/print-sunrpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'print-sunrpc.c')
-rw-r--r--print-sunrpc.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/print-sunrpc.c b/print-sunrpc.c
index bfb2fe9a7910..e33b7625e14e 100644
--- a/print-sunrpc.c
+++ b/print-sunrpc.c
@@ -28,6 +28,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