diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-12-23 15:37:33 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-12-23 15:37:33 +0000 |
commit | a14d6c8c65f4caa6f61030fcfd3df6f108919d44 (patch) | |
tree | 8512520d156624711b1bad4bda30f75a4cdd629d | |
parent | 04d4b0c33f92e8431095af4c8ab1dc8098b70ae6 (diff) |
Solaris SMBD hacks (Ben Taylor).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2276 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | vl.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -89,6 +89,11 @@ #include "exec-all.h" #define DEFAULT_NETWORK_SCRIPT "/etc/qemu-ifup" +#ifdef __sun__ +#define SMBD_COMMAND "/usr/sfw/sbin/smbd" +#else +#define SMBD_COMMAND "/usr/sbin/smbd" +#endif //#define DEBUG_UNUSED_IOPORT //#define DEBUG_IOPORT @@ -3084,8 +3089,8 @@ void net_slirp_smb(const char *exported_dir) fclose(f); atexit(smb_exit); - snprintf(smb_cmdline, sizeof(smb_cmdline), "/usr/sbin/smbd -s %s", - smb_conf); + snprintf(smb_cmdline, sizeof(smb_cmdline), "%s -s %s", + SMBD_COMMAND, smb_conf); slirp_add_exec(0, smb_cmdline, 4, 139); } |