2013-09-26 17:14:40 +02:00

25 lines
547 B
Plaintext

$NetBSD: patch-as,v 1.6 2007/01/09 10:21:51 joerg Exp $
--- src/RPC_TCP_Connector.c++.orig 2003-01-18 14:18:12.000000000 +0000
+++ src/RPC_TCP_Connector.c++
@@ -21,11 +21,19 @@
// Temple Place - Suite 330, Boston MA 02111-1307, USA.
#include "RPC_TCP_Connector.h"
+#include "config.h"
+
+#define PORTMAP
#include <errno.h>
+extern "C" {
#include <rpc/rpc.h>
#include <rpc/pmap_prot.h>
+}
#include <sys/ioctl.h>
+#ifdef HAVE_SYS_FILIO_H
+#include <sys/filio.h>
+#endif
#include <sys/socket.h>
#include <unistd.h>
#include <string.h>