diff options
Diffstat (limited to 'emulators/qemu-devel/files/patch-vl.c')
-rw-r--r-- | emulators/qemu-devel/files/patch-vl.c | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/emulators/qemu-devel/files/patch-vl.c b/emulators/qemu-devel/files/patch-vl.c index 85a521ba3bd0..5eff6568373b 100644 --- a/emulators/qemu-devel/files/patch-vl.c +++ b/emulators/qemu-devel/files/patch-vl.c @@ -1,4 +1,5 @@ -Index: qemu/vl.c +--- vl.c.orig Mon Nov 14 15:55:56 2005 ++++ vl.c Mon Nov 14 15:57:25 2005 @@ -40,6 +40,10 @@ #include <sys/socket.h> #include <netinet/in.h> @@ -10,7 +11,7 @@ Index: qemu/vl.c #ifdef _BSD #include <sys/stat.h> #ifndef __APPLE__ -@@ -1280,7 +1284,7 @@ +@@ -1363,7 +1367,7 @@ return chr; } @@ -19,3 +20,19 @@ Index: qemu/vl.c CharDriverState *qemu_chr_open_pty(void) { char slave_name[1024]; +@@ -1509,6 +1513,7 @@ + return chr; + } + ++#if defined(__linux__) + static int pp_ioctl(CharDriverState *chr, int cmd, void *arg) + { + int fd = (int)chr->opaque; +@@ -1571,6 +1576,7 @@ + chr->chr_ioctl = pp_ioctl; + return chr; + } ++#endif + + #else + CharDriverState *qemu_chr_open_pty(void) |