diff options
author | Valentin Bartenev <vbart@nginx.com> | 2017-09-22 16:42:42 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2017-09-22 16:42:42 +0300 |
commit | 45c1d41f34031c26344832f92837f08c0dbfba04 (patch) | |
tree | 13dcfc887eb020a59b9d8090bfa70e66858d97ea /src/nxt_event_engine.c | |
parent | 6a78aedb7e6eef061bec4fc406fe930154b128fe (diff) | |
download | unit-45c1d41f34031c26344832f92837f08c0dbfba04.tar.gz unit-45c1d41f34031c26344832f92837f08c0dbfba04.tar.bz2 |
Removed fibers from compilation.
It's not used anyway, but breaks building with musl.
This closes issue #5 on GitHub.
Diffstat (limited to 'src/nxt_event_engine.c')
-rw-r--r-- | src/nxt_event_engine.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nxt_event_engine.c b/src/nxt_event_engine.c index ba297329..7f20c4c8 100644 --- a/src/nxt_event_engine.c +++ b/src/nxt_event_engine.c @@ -48,12 +48,14 @@ nxt_event_engine_create(nxt_task_t *task, engine->batch = batch; +#if 0 if (flags & NXT_ENGINE_FIBERS) { engine->fibers = nxt_fiber_main_create(engine); if (engine->fibers == NULL) { goto fibers_fail; } } +#endif engine->current_work_queue = &engine->fast_work_queue; @@ -138,9 +140,12 @@ signals_fail: nxt_work_queue_cache_destroy(&engine->work_queue_cache); nxt_free(engine->fibers); +#if 0 fibers_fail: nxt_free(engine); +#endif + return NULL; } |