aboutsummaryrefslogtreecommitdiff
path: root/emulators/qemu/files
diff options
context:
space:
mode:
authorSam Lawrance <lawrance@FreeBSD.org>2005-11-14 05:17:09 +0000
committerSam Lawrance <lawrance@FreeBSD.org>2005-11-14 05:17:09 +0000
commit67b8cfeeef1992497579b2585c64a9ce0154f979 (patch)
tree62287095b3684cca5442e55573d91a2d6da2555c /emulators/qemu/files
parentfb302a8778b0c1fae28ac3e7cd6a339601ae8e6c (diff)
downloadports-67b8cfeeef1992497579b2585c64a9ce0154f979.tar.gz
ports-67b8cfeeef1992497579b2585c64a9ce0154f979.zip
Notes
Diffstat (limited to 'emulators/qemu/files')
-rw-r--r--emulators/qemu/files/patch-vl.c21
1 files changed, 19 insertions, 2 deletions
diff --git a/emulators/qemu/files/patch-vl.c b/emulators/qemu/files/patch-vl.c
index 85a521ba3bd0..5eff6568373b 100644
--- a/emulators/qemu/files/patch-vl.c
+++ b/emulators/qemu/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)