blob: 90503d45441adb51c86bb5e3935a1471d70664e2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- lib/libxview/ttysw/tty_modes.c.orig 2012-02-07 17:18:34.004531277 -0800
+++ lib/libxview/ttysw/tty_modes.c 2012-02-07 17:25:54.661975084 -0800
@@ -125,7 +125,7 @@
/*
* Switch the pty out of remote mode.
*/
-#if !(defined(__linux__) || defined(__CYGWIN__)) || defined(TIOCREMOTE)
+#if !(defined(__linux__) || defined(__CYGWIN__) || defined(__FreeBSD__)) || defined(TIOCREMOTE)
if (ioctl(ttysw->ttysw_pty, TIOCREMOTE, &off) < 0)
perror("ioctl: TIOCREMOTE");
else
@@ -278,7 +278,7 @@
*/
ttysw_getp((Ttysw_view_handle) ttysw_view);
ttysw->pending_remote = termsw->cooked_echo;
-#if !(defined(__linux__) || defined(__CYGWIN__)) || defined(TIOCREMOTE)
+#if !(defined(__linux__) || defined(__CYGWIN__) || defined(__FreeBSD__)) || defined(TIOCREMOTE)
if (ioctl(ttysw->ttysw_pty, TIOCREMOTE, &ttysw->pending_remote) < 0)
perror("ioctl: TIOCREMOTE");
else
|