fix pty handling on OSX/XNU
PATCH 1/1 fix pty handling on OSX/XNU
I think OSX can be treated like Linux and BSD for the PTY handling.
Best regards
Stefan
Signature · 5 lines
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: [email protected] • http://www.coresystems.de/
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866XNU pty fixes
Signed-off-by Stefan Reinauer <[email protected]>
qemu-char.c +2 -2
@@ -821,7 +821,7 @@#endif #if defined(__linux__) || defined(__sun__) || defined(__FreeBSD__) \ - || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) + || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__APPLE__) typedef struct { int fd;
@@ -2262,7 +2262,7 @@ } else#endif #if defined(__linux__) || defined(__sun__) || defined(__FreeBSD__) \ - || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) + || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__APPLE__)if (strstart (filename,"/dev/" ,NULL )) { chr =qemu_chr_open_tty (filename); }else