From b411be03c6d3dd9bc07ecf55d58580602ffcbd87 Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 29 Sep 1999 00:41:52 +0000 Subject: oops forgot one lunix patch --- net/icb/patches/patch-ai | 78 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 net/icb/patches/patch-ai (limited to 'net/icb/patches') diff --git a/net/icb/patches/patch-ai b/net/icb/patches/patch-ai new file mode 100644 index 00000000000..9c4cbf1fc55 --- /dev/null +++ b/net/icb/patches/patch-ai @@ -0,0 +1,78 @@ +$NetBSD: patch-ai,v 1.1 1999/09/29 00:41:52 christos Exp $ + +*** icb/serverlist.c.orig Tue Sep 28 19:14:47 1999 +--- icb/serverlist.c Tue Sep 28 19:15:09 1999 +*************** +*** 23,29 **** + #ifdef sgi + #undef SYSV + #endif +! #if !defined(SYSV) && !(defined(BSD) && BSD >= 199306) + getwd(pwd); + #else /* SYSV */ + getcwd(pwd, MAXPATHLEN+1); +--- 23,29 ---- + #ifdef sgi + #undef SYSV + #endif +! #if !defined(SYSV) && !(defined(BSD) && BSD >= 199306) && !defined(__linux__) + getwd(pwd); + #else /* SYSV */ + getcwd(pwd, MAXPATHLEN+1); +*** icb/unix.c.orig Tue Sep 28 19:14:47 1999 +--- icb/unix.c Tue Sep 28 19:15:42 1999 +*************** +*** 4,9 **** +--- 4,11 ---- + /* This file contains routines that are unix dependent. */ + /* Eventually, most unixisms should be moved here. */ + ++ #include ++ #include + #include + #include "icb.h" + #include "externs.h" +*************** +*** 13,18 **** +--- 15,28 ---- + #undef stty + #undef gtty + ++ #if defined(__linux__) ++ #include ++ #include ++ #define TTYSTRUCT termios ++ #define stty(fd,buf) tcgetattr((fd), (buf)) ++ #define gtty(fd,buf) tcsetattr((fd), TCSANOW, (buf)) ++ #define SYSV ++ #else + #ifndef SYSV + + #ifdef linux +*************** +*** 30,35 **** +--- 40,46 ---- + #define stty(fd,buf) ioctl((fd),TCSETA,(buf)) + #define gtty(fd,buf) ioctl((fd),TCGETA,(buf)) + #endif /* SYSV */ ++ #endif /* __linux__ */ + + char *getlogin(); + +*************** +*** 183,189 **** + + getwinsize() + { +! #ifndef NOWINSIZE + struct winsize win; + + /* get tty settings */ +--- 194,200 ---- + + getwinsize() + { +! #ifdef TIOCGWINSZ + struct winsize win; + + /* get tty settings */ -- cgit v1.2.3