View | Details | Raw Unified | Return to bug 110440
Collapse All | Expand All

(-)cad/cider/files/patch-ar (-2 / +7 lines)
Lines 1-6 Link Here
1
--- spice/common/src/include/os_bsd.h.orig	Sat Jan 29 19:14:37 1994
1
--- spice/common/src/include/os_bsd.h.orig	Sat Jan 29 19:14:37 1994
2
+++ spice/common/src/include/os_bsd.h	Thu Jan  6 12:33:20 2000
2
+++ spice/common/src/include/os_bsd.h	Thu Jan  6 12:33:20 2000
3
@@ -6,14 +6,22 @@
3
@@ -6,20 +6,40 @@
4
  *	BSD and derivative systems
4
  *	BSD and derivative systems
5
  */
5
  */
6
 
6
 
Lines 24-31 Link Here
24
-#define HAS_INDEX		/* index( ) instead of strchr( )	*/
24
-#define HAS_INDEX		/* index( ) instead of strchr( )	*/
25
 #define HAS_BCOPY		/* bcopy( ), bzero( )			*/
25
 #define HAS_BCOPY		/* bcopy( ), bzero( )			*/
26
 #define HAS_BSDRANDOM		/* srandom( ) and random( )		*/
26
 #define HAS_BSDRANDOM		/* srandom( ) and random( )		*/
27
+#ifdef __FreeBSD__
28
+#define HAS_POSIXTTY		/* <termios.h>				*/
29
+#else
27
 #define HAS_BSDTTY		/* <sgtty.h>				*/
30
 #define HAS_BSDTTY		/* <sgtty.h>				*/
28
@@ -22,4 +30,12 @@
31
+#endif
32
 #define HAS_BSDDIRS		/* <sys/dir.h>				*/
33
 #define HAS_BSDRUSAGE		/* getrusage( )				*/
29
 #define HAS_BSDRLIMIT		/* getrlimit( )				*/
34
 #define HAS_BSDRLIMIT		/* getrlimit( )				*/
30
 #define HAS_DUP2
35
 #define HAS_DUP2
31
 #define HAS_GETWD		/* getwd(buf)				*/
36
 #define HAS_GETWD		/* getwd(buf)				*/
(-)cad/cider/files/patch-spice-common-src-lib-cp-complete.c (+20 lines)
Line 0 Link Here
1
--- spice/common/src/lib/cp/complete.c	Wed Jun 19 05:55:38 1991
2
+++ spice/common/src/lib/cp/complete.c	Sat Mar 17 11:51:56 2007
3
@@ -445,14 +445,14 @@
4
     ison = on;
5
 
6
     if (ison == true) {
7
-	(void) ioctl(fileno(cp_in), TERM_GET, (char *) &OS_Buf);
8
+    	tcgetattr(fileno(cp_in), &OS_Buf);
9
 	sbuf = OS_Buf;
10
 	sbuf.c_cc[VEOF] = 0;
11
 	sbuf.c_cc[VEOL] = ESCAPE;
12
 	sbuf.c_cc[VEOL2] = CNTRL_D;
13
-	(void) ioctl(fileno(cp_in), TERM_SET, (char *) &sbuf);
14
+    	tcsetattr(fileno(cp_in), TCSANOW, &OS_Buf);
15
     } else {
16
-	(void) ioctl(fileno(cp_in), TERM_SET, (char *) &OS_Buf);
17
+    	tcsetattr(fileno(cp_in), TCSANOW, &OS_Buf);
18
     }
19
 
20
 #  endif

Return to bug 110440