diff options
author | miwi <miwi@FreeBSD.org> | 2007-04-16 03:07:20 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2007-04-16 03:07:20 +0800 |
commit | 1d48ff2e7c24d20abacbc7bb969ced7775e9a937 (patch) | |
tree | 87349d37efe8f9e180fcc90cf4781aa65fe67f46 /cad | |
parent | b84e2ce462e65280730c35c4474a57d3d7638a5a (diff) | |
download | freebsd-ports-gnome-1d48ff2e7c24d20abacbc7bb969ced7775e9a937.tar.gz freebsd-ports-gnome-1d48ff2e7c24d20abacbc7bb969ced7775e9a937.tar.zst freebsd-ports-gnome-1d48ff2e7c24d20abacbc7bb969ced7775e9a937.zip |
- Use termios.h
PR: 110440
Submitted by: Ed Schouten <ed@fxq.nl>
Approved by: maintainer
Diffstat (limited to 'cad')
-rw-r--r-- | cad/cider/files/patch-ar | 9 | ||||
-rw-r--r-- | cad/cider/files/patch-spice-common-src-lib-cp-complete.c | 20 |
2 files changed, 27 insertions, 2 deletions
diff --git a/cad/cider/files/patch-ar b/cad/cider/files/patch-ar index 913213835c24..1ea4d84e3892 100644 --- a/cad/cider/files/patch-ar +++ b/cad/cider/files/patch-ar @@ -1,6 +1,6 @@ --- spice/common/src/include/os_bsd.h.orig Sat Jan 29 19:14:37 1994 +++ spice/common/src/include/os_bsd.h Thu Jan 6 12:33:20 2000 -@@ -6,14 +6,22 @@ +@@ -6,20 +6,40 @@ * BSD and derivative systems */ @@ -24,8 +24,13 @@ -#define HAS_INDEX /* index( ) instead of strchr( ) */ #define HAS_BCOPY /* bcopy( ), bzero( ) */ #define HAS_BSDRANDOM /* srandom( ) and random( ) */ ++#ifdef __FreeBSD__ ++#define HAS_POSIXTTY /* <termios.h> */ ++#else #define HAS_BSDTTY /* <sgtty.h> */ -@@ -22,4 +30,12 @@ ++#endif + #define HAS_BSDDIRS /* <sys/dir.h> */ + #define HAS_BSDRUSAGE /* getrusage( ) */ #define HAS_BSDRLIMIT /* getrlimit( ) */ #define HAS_DUP2 #define HAS_GETWD /* getwd(buf) */ diff --git a/cad/cider/files/patch-spice-common-src-lib-cp-complete.c b/cad/cider/files/patch-spice-common-src-lib-cp-complete.c new file mode 100644 index 000000000000..745e66d8269c --- /dev/null +++ b/cad/cider/files/patch-spice-common-src-lib-cp-complete.c @@ -0,0 +1,20 @@ +--- spice/common/src/lib/cp/complete.c Wed Jun 19 05:55:38 1991 ++++ spice/common/src/lib/cp/complete.c Sat Mar 17 11:51:56 2007 +@@ -445,14 +445,14 @@ + ison = on; + + if (ison == true) { +- (void) ioctl(fileno(cp_in), TERM_GET, (char *) &OS_Buf); ++ tcgetattr(fileno(cp_in), &OS_Buf); + sbuf = OS_Buf; + sbuf.c_cc[VEOF] = 0; + sbuf.c_cc[VEOL] = ESCAPE; + sbuf.c_cc[VEOL2] = CNTRL_D; +- (void) ioctl(fileno(cp_in), TERM_SET, (char *) &sbuf); ++ tcsetattr(fileno(cp_in), TCSANOW, &OS_Buf); + } else { +- (void) ioctl(fileno(cp_in), TERM_SET, (char *) &OS_Buf); ++ tcsetattr(fileno(cp_in), TCSANOW, &OS_Buf); + } + + # endif |