From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C5kuE-0001kp-6C for qemu-devel@nongnu.org; Fri, 10 Sep 2004 08:53:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C5kuC-0001kO-La for qemu-devel@nongnu.org; Fri, 10 Sep 2004 08:53:33 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C5kuC-0001kL-Ij for qemu-devel@nongnu.org; Fri, 10 Sep 2004 08:53:32 -0400 Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C5ko3-0007fQ-Ti for qemu-devel@nongnu.org; Fri, 10 Sep 2004 08:47:12 -0400 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1C5ko2-0000IM-00 for ; Fri, 10 Sep 2004 14:47:10 +0200 Received: from amarseille-206-1-1-113.w80-11.abo.wanadoo.fr ([80.11.212.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Sep 2004 14:47:10 +0200 Received: from daimon55 by amarseille-206-1-1-113.w80-11.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Sep 2004 14:47:10 +0200 From: Ronald Date: Fri, 10 Sep 2004 14:47:07 +0200 Message-ID: References: <413BA018.60601@bellard.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: news Subject: [Qemu-devel] Re: SAMBA support in QEMU Reply-To: daimon55@free.fr, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Le Mon, 06 Sep 2004 19:02:07 +0200, Ronald a écrit : > Le Mon, 06 Sep 2004 02:30:50 +0200, Ronald a écrit : > > >> Just a small fix to make it build for windows. >> >> > Perhaps the following could be more usefull. Not sure if this is correct > and even work. > No, the whole thing don't work, although the build goes fine and qemu don't crash, the process is not launched when using slirp_add_exec, something related to unimplemented fork_exec for win32? So I've just put some #ifndef around the smb related parts in vl.c to build latest cvs. --- vl.c.old 2004-09-06 18:55:04.524395364 +0200 +++ vl.c 2004-09-10 14:44:01.049726726 +0200 @@ -1454,6 +1454,8 @@ fprintf(stderr, "qemu: syntax: -redir [tcp|udp]:host-port:[guest-host]:guest-port\n"); exit(1); } + +#ifndef _WIN32 char smb_dir[1024]; @@ -1526,10 +1528,10 @@ atexit(smb_exit); snprintf(smb_cmdline, sizeof(smb_cmdline), "/usr/sbin/smbd -s %s", smb_conf); - + slirp_add_exec(0, smb_cmdline, 4, 139); } - +#endif /* ifndef _WIN32 */ #endif /* CONFIG_SLIRP */ #if !defined(_WIN32) @@ -2913,8 +2915,10 @@ case QEMU_OPTION_tftp: tftp_prefix = optarg; break; +#ifndef _WIN32 case QEMU_OPTION_smb: net_slirp_smb(optarg); +#endif break; case QEMU_OPTION_user_net: net_if_type = NET_IF_USER;