summaryrefslogtreecommitdiff
path: root/net/bounce/patches/patch-aa
blob: 09c15b6ffab7f2e865f88cc39fff99c0e018ae71 (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
$NetBSD: patch-aa,v 1.2 2005/12/18 21:45:29 joerg Exp $

--- bounce.c.orig	2000-02-18 21:58:52.000000000 +0000
+++ bounce.c
@@ -11,6 +11,9 @@
 #ifdef _AIX
 #include <sys/select.h>
 #endif
+#ifdef __NetBSD__
+#include <string.h> /* memset() for FD_*() macros */
+#endif
 
 #include <fcntl.h>
 #include <errno.h>
@@ -27,7 +30,6 @@
 #define    DEFAULT_PORT   1523
 
 char sbuf[16384], cbuf[16384];
-extern int errno;
 /* extern char *sys_errlist[]; */
 
 void sigchld() {
@@ -39,7 +41,6 @@ void communicate(int sfd, int cfd) {
     char *chead, *ctail, *shead, *stail;
     int num, nfd, spos, cpos;
 
-    extern int errno;
     fd_set rd, wr;
 
     struct itimerval itime;