pkgsrc/net/bounce/patches/patch-aa
2005-12-18 21:45:29 +00:00

30 lines
673 B
Text

$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;