mirror of
https://github.com/gwenhael-le-moine/x48.git
synced 2024-11-16 19:50:21 +01:00
Merge pull request #9 from 2364c66e322e44d99b0caeee94b8010c/fix_kermit_macos
Fix kermit macos
This commit is contained in:
commit
4381eabf9f
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ int serial_init(void) {
|
||||||
wire_name = strdup(tty_dev_name);
|
wire_name = strdup(tty_dev_name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#elif defined(LINUX)
|
#elif defined(LINUX) || defined(__APPLE__)
|
||||||
/* Unix98 PTY (Preferred) */
|
/* Unix98 PTY (Preferred) */
|
||||||
if ((wire_fd = open("/dev/ptmx", O_RDWR | O_NONBLOCK, 0666)) >= 0) {
|
if ((wire_fd = open("/dev/ptmx", O_RDWR | O_NONBLOCK, 0666)) >= 0) {
|
||||||
grantpt(wire_fd);
|
grantpt(wire_fd);
|
||||||
|
|
Loading…
Reference in a new issue