Patchwork fix pty handling on OSX/XNU

login
register
mail settings
Submitter Stefan Reinauer
Date Dec. 5, 2009, 4:55 p.m.
Message ID <4B1A9080.6030204@coresystems.de>
Download mbox | patch
Permalink /patch/40402/
State New
Headers show

Comments

Stefan Reinauer - Dec. 5, 2009, 4:55 p.m.
I think OSX can be treated like Linux and BSD for the PTY handling.

Best regards

Stefan

Patch

--- qemu-0.11.0/qemu-char.c
+++ qemu-0.11.0/qemu-char.c
@@ -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