[core] Fix compilation on non-linux systems

personal/stbuehler/wip
Thomas Porzelt 13 years ago
parent 0eaed50c1c
commit c7a39e4da1

@ -968,6 +968,7 @@ static gboolean core_workers_cpu_affinity(liServer *srv, liPlugin* p, liValue *v
return TRUE;
#else
UNUSED(p); UNUSED(val); UNUSED(userdata);
ERROR(srv, "%s", "workers.cpu_affinity is only available on Linux systems");
return FALSE;
#endif

@ -279,7 +279,9 @@ void li_server_free(liServer* srv) {
g_array_free(srv->li_plugins_handle_close, TRUE);
g_array_free(srv->li_plugins_handle_vrclose, TRUE);
#ifdef LIGHTY_OS_LINUX
li_value_free(srv->workers_cpu_affinity);
#endif
if (srv->started_str)
g_string_free(srv->started_str, TRUE);

Loading…
Cancel
Save