Merge pull request #9 from 2364c66e322e44d99b0caeee94b8010c/fix_kermit_macos

Fix kermit macos
This commit is contained in:
gwenhael 2023-12-29 12:52:36 +01:00 committed by GitHub
commit 4381eabf9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);