summaryrefslogtreecommitdiff
path: root/net/icb
diff options
context:
space:
mode:
authorchristos <christos>1999-09-29 00:41:52 +0000
committerchristos <christos>1999-09-29 00:41:52 +0000
commit964a8e4862eec8aba4b10cd4f39fcb498661b51d (patch)
treedf5506e63051f2259a5f66f30e760cfe143c2732 /net/icb
parent05ab5d780e71f8b2bb38a8c05c242c4e098b18a9 (diff)
downloadpkgsrc-964a8e4862eec8aba4b10cd4f39fcb498661b51d.tar.gz
oops forgot one lunix patch
Diffstat (limited to 'net/icb')
-rw-r--r--net/icb/patches/patch-ai78
1 files changed, 78 insertions, 0 deletions
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 <sys/types.h>
++ #include <sys/param.h>
+ #include <stdio.h>
+ #include "icb.h"
+ #include "externs.h"
+***************
+*** 13,18 ****
+--- 15,28 ----
+ #undef stty
+ #undef gtty
+
++ #if defined(__linux__)
++ #include <termios.h>
++ #include <sys/ioctl.h>
++ #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 */