From 266665cebf080e69dd41dba82a63fb8efeb6beb4 Mon Sep 17 00:00:00 2001 From: f007bfc1d8254ff6b0be052029dd5486 <> Date: Thu, 28 Dec 2023 16:13:13 +0900 Subject: [PATCH] updated serial.c to work with recent MacOS --- src/serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/serial.c b/src/serial.c index ee77e54..f869ea8 100644 --- a/src/serial.c +++ b/src/serial.c @@ -144,7 +144,7 @@ int serial_init(void) { wire_name = strdup(tty_dev_name); } } -#elif defined(LINUX) +#elif defined(LINUX) || defined(__APPLE__) /* Unix98 PTY (Preferred) */ if ((wire_fd = open("/dev/ptmx", O_RDWR | O_NONBLOCK, 0666)) >= 0) { grantpt(wire_fd);