mirror of
https://github.com/gwenhael-le-moine/x48.git
synced 2024-11-16 19:50:21 +01:00
updated serial.c to work with recent MacOS
This commit is contained in:
parent
e10fc4ac7e
commit
266665cebf
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue