summaryrefslogtreecommitdiff
path: root/net/xmftp/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'net/xmftp/patches/patch-ac')
-rw-r--r--net/xmftp/patches/patch-ac35
1 files changed, 35 insertions, 0 deletions
diff --git a/net/xmftp/patches/patch-ac b/net/xmftp/patches/patch-ac
new file mode 100644
index 00000000000..ab92bd27bb5
--- /dev/null
+++ b/net/xmftp/patches/patch-ac
@@ -0,0 +1,35 @@
+$NetBSD: patch-ac,v 1.1.1.1 2002/04/21 10:47:32 rh Exp $
+
+--- ftplib/ftplib.c.orig Tue Apr 16 20:13:05 2002
++++ ftplib/ftplib.c
+@@ -25,10 +25,10 @@
+ #include "../ui/xmftp.h"
+ #include "../ui/operations.h"
+
+-#if defined(__unix__)
++#if defined(__unix__) || defined(__NetBSD__)
+ #include <unistd.h>
+ #endif
+-#if defined(__unix__) || defined(VMS)
++#if defined(__unix__) || defined(VMS) || defined(__NetBSD__)
+ #define GLOBALDEF
+ #define GLOBALREF extern
+ #elif defined(_WIN32)
+@@ -40,7 +40,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <ctype.h>
+-#if defined(__unix__)
++#if defined(__unix__) || defined(__NetBSD__)
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+@@ -93,7 +93,7 @@
+
+ GLOBALDEF int ftplib_debug = 0;
+
+-#if defined(__unix__) || defined(VMS)
++#if defined(__unix__) || defined(VMS) || defined(__NetBSD__)
+ #define net_read read
+ #define net_write write
+ #define net_close close