Removed fibers from compilation.

It's not used anyway, but breaks building with musl.

This closes issue #5 on GitHub.
This commit is contained in:
Valentin Bartenev
2017-09-22 16:42:42 +03:00
parent 6a78aedb7e
commit 45c1d41f34
7 changed files with 22 additions and 7 deletions

View File

@@ -21,9 +21,6 @@ nxt_log_time_handler(nxt_uint_t level, nxt_log_t *log, const char *fmt, ...)
{
u_char *p, *syslogmsg, *end;
va_list args;
nxt_fid_t fid;
const char *id;
nxt_fiber_t *fib;
nxt_thread_t *thr;
nxt_time_string_t *time_cache;
u_char msg[NXT_MAX_ERROR_STR];
@@ -39,6 +36,11 @@ nxt_log_time_handler(nxt_uint_t level, nxt_log_t *log, const char *fmt, ...)
syslogmsg = p;
#if 0
nxt_fid_t fid;
const char *id;
nxt_fiber_t *fib;
fib = nxt_fiber_self(thr);
if (fib != NULL) {
@@ -52,6 +54,10 @@ nxt_log_time_handler(nxt_uint_t level, nxt_log_t *log, const char *fmt, ...)
p = nxt_sprintf(p, end, id, &nxt_log_levels[level], nxt_pid,
nxt_thread_tid(thr), fid);
#else
p = nxt_sprintf(p, end, "[%V] %PI#%PT ", &nxt_log_levels[level], nxt_pid,
nxt_thread_tid(thr));
#endif
if (log->ident != 0) {
p = nxt_sprintf(p, end, "*%D ", log->ident);