From owner-freebsd-emulation@FreeBSD.ORG Thu Aug 25 19:03:05 2005 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BD1B16A41F for ; Thu, 25 Aug 2005 19:03:05 +0000 (GMT) (envelope-from albi@scii.nl) Received: from post-22.mail.nl.demon.net (post-22.mail.nl.demon.net [194.159.73.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id B077343D46 for ; Thu, 25 Aug 2005 19:03:04 +0000 (GMT) (envelope-from albi@scii.nl) Received: from aseed.demon.nl ([83.160.138.119]:9946 helo=mail.aseed.antenna.nl) by post-22.mail.nl.demon.net with esmtp (Exim 4.51) id 1E8N0B-000Jz8-KK for freebsd-emulation@freebsd.org; Thu, 25 Aug 2005 19:03:03 +0000 Received: from http.aseed.antenna.nl (unknown [192.168.0.50]) by mail.aseed.antenna.nl (Postfix) with ESMTP id 44437154536 for ; Thu, 25 Aug 2005 21:12:09 +0200 (CEST) Received: from localhost.localdomain (217-19-30-147.dsl.cambrium.nl [217.19.30.147]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by http.aseed.antenna.nl (Postfix) with ESMTP id 1898A5904F3 for ; Thu, 25 Aug 2005 21:03:34 +0200 (CEST) Date: Thu, 25 Aug 2005 21:03:00 +0200 From: "albi@scii.nl" To: freebsd-emulation@freebsd.org Message-Id: <20050825210300.7f68bb5f.albi@scii.nl> In-Reply-To: <20050825205410.33738d0a.albi@scii.nl> References: <20050825205410.33738d0a.albi@scii.nl> X-Mailer: Sylpheed version 2.0.0 (GTK+ 2.6.4; i386-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: qemu-questions X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Aug 2005 19:03:05 -0000 On Thu, 25 Aug 2005 20:54:10 +0200 "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 #include #include +#ifdef __FreeBSD__ +#include +#include +#endif #ifdef _BSD #include #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];