]> The Tcpdump Group git mirrors - tcpdump/commitdiff
At least on HP-UX:
authorGuy Harris <[email protected]>
Fri, 3 Jul 2009 01:43:40 +0000 (18:43 -0700)
committerGuy Harris <[email protected]>
Fri, 3 Jul 2009 01:43:40 +0000 (18:43 -0700)
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.

print-sunrpc.c

index bfb2fe9a791062ac69b76336f300c781c7b6df52..e33b7625e14e9e2a09fe5caface38035f1ad5eb3 100644 (file)
@@ -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