mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-10 02:45:11 +00:00
53d4bbec5b
PR: ports/ports/89816 Submitted by: Juergen Lock <nox@jelal.kn-bremen.de> (maintainer)
28 lines
561 B
C
28 lines
561 B
C
--- 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)
|