96866477a3
PR: ports/72945 Submitted by: Juergen Lock <nox@jelal.kn-bremen.de> (maintainer)
25 lines
681 B
Text
25 lines
681 B
Text
Index: qemu/Makefile.target
|
|
@@ -179,7 +179,7 @@
|
|
|
|
#########################################################
|
|
|
|
-DEFINES+=-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
|
|
+DEFINES+=-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DSMBD=\"${LOCALBASE}/sbin/smbd\"
|
|
LIBS+=-lm
|
|
ifndef CONFIG_USER_ONLY
|
|
LIBS+=-lz
|
|
Index: qemu/vl.c
|
|
@@ -1560,8 +1560,13 @@
|
|
fclose(f);
|
|
atexit(smb_exit);
|
|
|
|
+#ifdef __FreeBSD__
|
|
+ snprintf(smb_cmdline, sizeof(smb_cmdline), SMBD " -s %s",
|
|
+ smb_conf);
|
|
+#else
|
|
snprintf(smb_cmdline, sizeof(smb_cmdline), "/usr/sbin/smbd -s %s",
|
|
smb_conf);
|
|
+#endif
|
|
|
|
slirp_add_exec(0, smb_cmdline, 4, 139);
|
|
}
|