freebsd-ports/x11-toolkits/xview/files/patch-lib+libxview+ttysw+tty_modes.c
Pav Lucistnik 870498d268 - Unbreak on 5.X and above:
* Redo SUBDIRS passing to work with new make(1)
  * Patch out TIOCREMOTE ioctl calls, it was removed from FreeBSD
  * Some gcc34 fixes
- Fix plist for xorg users

Approved by:	portmgr (marcus)
2005-08-06 21:39:23 +00:00

26 lines
775 B
C

--- lib/libxview/ttysw/tty_modes.c.orig Sat Aug 6 21:47:27 2005
+++ lib/libxview/ttysw/tty_modes.c Sat Aug 6 22:01:01 2005
@@ -125,9 +125,11 @@
/*
* Switch the pty out of remote mode.
*/
+# if defined(TIOCREMOTE)
if (ioctl(ttysw->ttysw_pty, TIOCREMOTE, &off) < 0)
perror("ioctl: TIOCREMOTE");
else
+# endif
ttysw->remote = ttysw->pending_remote = off;
}
@@ -276,9 +278,11 @@
*/
ttysw_getp((Ttysw_view_handle) ttysw_view);
ttysw->pending_remote = termsw->cooked_echo;
+# if defined(TIOCREMOTE)
if (ioctl(ttysw->ttysw_pty, TIOCREMOTE, &ttysw->pending_remote) < 0)
perror("ioctl: TIOCREMOTE");
else
+# endif /* TIOCREMOTE */
ttysw->remote = ttysw->pending_remote;
if (!ttysw_waiting_for_pty_input) {