Browse Source

[core] Fix compilation on non-linux systems

personal/stbuehler/wip
Thomas Porzelt 12 years ago
parent
commit
c7a39e4da1
  1. 1
      src/main/plugin_core.c
  2. 2
      src/main/server.c

1
src/main/plugin_core.c

@ -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

2
src/main/server.c

@ -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