qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: SAMBA support in QEMU


From: Ronald
Subject: [Qemu-devel] Re: SAMBA support in QEMU
Date: Fri, 10 Sep 2004 14:47:07 +0200
User-agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.)

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;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]