aboutsummaryrefslogtreecommitdiff
path: root/emulators/qemu-devel/files/patch-vl.c
blob: adf052460e2847eb0bc55e6b94a2de44a81894ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- vl.c.orig	Mon Nov 14 15:55:56 2005
+++ vl.c	Mon Nov 14 15:57:25 2005
@@ -1363,7 +1367,7 @@
     return chr;
 }
 
-#if defined(__linux__)
+#if defined(__linux__) || defined(__FreeBSD__)
 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)