Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Aug 2005 21:03:00 +0200
From:      "albi@scii.nl" <albi@scii.nl>
To:        freebsd-emulation@freebsd.org
Subject:   Re: qemu-questions
Message-ID:  <20050825210300.7f68bb5f.albi@scii.nl>
In-Reply-To: <20050825205410.33738d0a.albi@scii.nl>
References:  <20050825205410.33738d0a.albi@scii.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 25 Aug 2005 20:54:10 +0200
"albi@scii.nl" <albi@scii.nl> wrote:

> - i'd like to use qemu with the -nographic option in a virtual console
>   in FreeBSD (i have a serial console here but without keyboard and
>   proper serial cable hence the question)

just found this page
http://m2.dad-answers.com/qemu-forum/viewtopic.php?t=103
which talks about "This patch allow pty creating for serial console
redirect."

--- vl.c.orig   Sat Apr 30 20:10:35 2005
+++ vl.c   Sun Jul 24 16:42:14 2005
@@ -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];




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050825210300.7f68bb5f.albi>