head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2026.11.18.02.18.30; author ktnb; state Exp; branches; next ; commitid UuOqyLFa6311ZS3H; desc @@ 1.1 log @TinTin++ is a command line MUD client which features support for TELNET, PCRE, UTF-8, SSL, VT100, IPv6, the dynamic TINTIN scripting language, a comprensive trigger system, and several other features geared towards mudding, scripting, shell-scripting, text processing, automation, interprocess communication, redirection, xterm terminal emulation, and multiplexing / demultiplexing. @ text @$NetBSD$ Bypass linux-specific ioctl(3) calls --- forkpty.c.orig 2026-11-17 21:55:18.545444024 +0000 +++ forkpty.c @@@@ -20,7 +20,9 @@@@ #include #include #include +#ifndef __NetBSD__ #include +#endif #define DEV_PTMX "/dev/ptmx" @@@@ -77,6 +79,12 @@@@ int open_slave(char *name) int open_slave(char *name) { int fd; +#ifdef __NetBSD__ + fd = open(name, O_RDWR | O_NOCTTY); + if (fd < 0) + return EPTMX_OPEN; + return fd; +#else int status; fd = open(name, O_RDWR); @@@@ -112,6 +120,7 @@@@ int open_slave(char *name) } return fd; +#endif } @