summaryrefslogtreecommitdiff
path: root/emulators/qemu-devel/files/patch-vl.c
blob: 44c3c64cb468536f19f12afc8d4e1193f5e5a598 (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
Index: qemu/vl.c
@@ -1510,7 +1510,7 @@
     return chr;
 }
 
-#if defined(__linux__)
+#if defined(__linux__) || defined(__FreeBSD__)
 static CharDriverState *qemu_chr_open_pty(void)
 {
     struct termios tty;
@@ -1904,6 +1907,7 @@
     return chr;
 }
 
+#if defined(__linux__)
 typedef struct {
     int fd;
     int mode;
@@ -1727,6 +1728,7 @@
     chr->chr_ioctl = pp_ioctl;
     return chr;
 }
+#endif /* defined(__linux__) */
 
 #else
 CharDriverState *qemu_chr_open_pty(void)