include headers which are unavailable on Linux. Modify the patches so that those headers are included only when they are found by configure.
28 lines
605 B
Text
28 lines
605 B
Text
$NetBSD: patch-as,v 1.5 2004/12/09 18:45:32 minskim Exp $
|
|
|
|
--- src/RPC_TCP_Connector.c++.orig 2003-01-18 08:18:12.000000000 -0600
|
|
+++ src/RPC_TCP_Connector.c++
|
|
@@ -21,11 +21,23 @@
|
|
// Temple Place - Suite 330, Boston MA 02111-1307, USA.
|
|
|
|
#include "RPC_TCP_Connector.h"
|
|
+#include "config.h"
|
|
+
|
|
+#define PORTMAP
|
|
|
|
#include <errno.h>
|
|
+#ifdef __SUNPRO_CC
|
|
+extern "C" {
|
|
+#endif
|
|
#include <rpc/rpc.h>
|
|
#include <rpc/pmap_prot.h>
|
|
+#ifdef __SUNPRO_CC
|
|
+}
|
|
+#endif
|
|
#include <sys/ioctl.h>
|
|
+#ifdef HAVE_SYS_FILIO_H
|
|
+#include <sys/filio.h>
|
|
+#endif
|
|
#include <sys/socket.h>
|
|
#include <unistd.h>
|
|
#include <string.h>
|