ports/emulators/qemu/files/patch-vl.c
Norikatsu Shigemura 21c9816960 Update to 0.7.2s.20050909.
PR:		ports/85947
Submitted by:	Juergen Lock <nox@jelal.kn-bremen.de> (maintainer)
2005-09-10 17:04:42 +00:00

21 lines
425 B
C

Index: qemu/vl.c
@@ -40,6 +40,10 @@
#include <sys/socket.h>
#include <netinet/in.h>
#include <dirent.h>
+#ifdef __FreeBSD__
+#include <sys/types.h>
+#include <libutil.h>
+#endif
#ifdef _BSD
#include <sys/stat.h>
#ifndef __APPLE__
@@ -1280,7 +1284,7 @@
return chr;
}
-#if defined(__linux__)
+#if defined(__linux__) || defined(__FreeBSD__)
CharDriverState *qemu_chr_open_pty(void)
{
char slave_name[1024];