pkgsrc/editors/cooledit/patches/patch-rxvt_rxvtlib__command_c
dholland cb5660b2a6 If you have ptyfs set up and this package detects it, it assumes you
must be on System V and also have STREAMS. Avoid the STREAMS code for
NetBSD.

Note: I haven't tested this or even looked at any of the code except
for what was trying to use STREAMS, so it may not work; but now it at
least builds, and the behavior if ptyfs is not detected is unchanged.
2011-12-21 08:45:34 +00:00

23 lines
732 B
Text

$NetBSD: patch-rxvt_rxvtlib__command_c,v 1.1 2011/12/21 08:45:34 dholland Exp $
If the configuration detects /dev/ptmx, it tries to use it; but avoid
in that case trying to do STREAMS things.
--- rxvt/rxvtlib_command.c~ 2005-04-04 20:47:45.000000000 +0000
+++ rxvt/rxvtlib_command.c
@@ -386,6 +386,7 @@ int rxvtlib_get_tty (rxvtlib
return -1;
}
#ifdef PTYS_ARE_PTMX
+#ifndef __NetBSD__
/*
* Push STREAMS modules:
* ptem: pseudo-terminal hardware emulation module.
@@ -398,6 +399,7 @@ int rxvtlib_get_tty (rxvtlib
ioctl (fd, I_PUSH, "ttcompat");
}
#endif
+#endif
if (o->changettyowner) {
/* change ownership of tty to real uid and real group */
unsigned int mode = 0622;