summaryrefslogtreecommitdiffstats
path: root/japanese/jvim3
diff options
context:
space:
mode:
authornork <nork@FreeBSD.org>2004-06-29 14:03:57 +0000
committernork <nork@FreeBSD.org>2004-06-29 14:03:57 +0000
commitc57ca210560ee4b78837e6eff0b3ae1fc70959f5 (patch)
tree5dc6c0b3d7b773f1daa2479285aeb25a6c64edd0 /japanese/jvim3
parent32c3cb06d9dda7ef45a70cbee213668d1b3a7788 (diff)
downloadFreeBSD-ports-c57ca210560ee4b78837e6eff0b3ae1fc70959f5.zip
FreeBSD-ports-c57ca210560ee4b78837e6eff0b3ae1fc70959f5.tar.gz
Use termios rather than sgtty.
Approved by: taoka (blanket) Tested on the box from: AMD Developper Program
Diffstat (limited to 'japanese/jvim3')
-rw-r--r--japanese/jvim3/Makefile1
-rw-r--r--japanese/jvim3/files/patch-src::unix.c30
2 files changed, 31 insertions, 0 deletions
diff --git a/japanese/jvim3/Makefile b/japanese/jvim3/Makefile
index 332c7a2..57772a1 100644
--- a/japanese/jvim3/Makefile
+++ b/japanese/jvim3/Makefile
@@ -7,6 +7,7 @@
PORTNAME= jvim
PORTVERSION= 3.0.j2.1a
+PORTREVISION= 1
PKGNAMESUFFIX= ${INPUT_METHOD}
CATEGORIES= japanese editors
MASTER_SITES= ftp://ftp.vim.org/pub/vim/unix/ \
diff --git a/japanese/jvim3/files/patch-src::unix.c b/japanese/jvim3/files/patch-src::unix.c
new file mode 100644
index 0000000..5a7f0e9
--- /dev/null
+++ b/japanese/jvim3/files/patch-src::unix.c
@@ -0,0 +1,30 @@
+--- src/unix.c.orig Sun Jun 27 12:56:25 2004
++++ src/unix.c Sun Jun 27 12:58:11 2004
+@@ -17,6 +17,7 @@
+ #include "param.h"
+ #include "proto.h"
+
++#include <sys/param.h>
+ #include <fcntl.h>
+ #if !defined(pyr) && !defined(NOT_BOTH_TIME)
+ # include <time.h> /* on some systems time.h should not be
+@@ -73,6 +74,10 @@
+ # if defined(hpux) && !defined(SIGWINCH) /* hpux 9.01 has it */
+ # define SIGWINCH SIGWINDOW
+ # endif
++# elif defined(BSD4_4)
++# include <termios.h>
++# define TCGETA TIOCGETA
++# define TCSETA TIOCSETA
+ # else
+ # include <sgtty.h>
+ # endif /* hpux */
+@@ -828,7 +833,7 @@
+ {
+ #if defined(ECHOE) && defined(ICANON) && !defined(__NeXT__)
+ /* for "new" tty systems */
+-# ifdef CONVEX
++#if defined(CONVEX) || defined(BSD4_4)
+ static struct termios told;
+ struct termios tnew;
+ # else
OpenPOWER on IntegriCloud