summaryrefslogtreecommitdiff
path: root/net/xmftp/patches/patch-ac
blob: ab92bd27bb541ee04157fab34a5ea031ed2c3c28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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