X-Git-Url: https://arthur.barton.de/gitweb/?p=netatalk.git;a=blobdiff_plain;f=etc%2Fafpd%2Fafp_dsi.c;h=98404ce20f588c849faba4c66cb02dc5b5db211a;hp=124db47a251af34771a60271ad3b813d1044d569;hb=HEAD;hpb=398bbba26ebc1b2021a1376306732ef7c46017b5;ds=sidebyside diff --git a/etc/afpd/afp_dsi.c b/etc/afpd/afp_dsi.c index 124db47a..98404ce2 100644 --- a/etc/afpd/afp_dsi.c +++ b/etc/afpd/afp_dsi.c @@ -493,9 +493,12 @@ void afp_over_dsi(AFPObj *obj) int flag = 1; setsockopt(dsi->socket, SOL_TCP, TCP_NODELAY, &flag, sizeof(flag)); +#ifdef HAVE_TRACKER /* Initialize Spotlight */ - if ((obj->options.flags & OPTION_SPOTLIGHT) && (obj->options.slmod_path)) - sl_mod_load(obj); + if (obj->options.flags & OPTION_SPOTLIGHT) { + spotlight_init(obj); + } +#endif ipc_child_state(obj, DSI_RUNNING);