diff --git a/auto/lib/md5/make b/auto/lib/md5/make new file mode 100644 index 0000000000..0b4d927736 --- /dev/null +++ b/auto/lib/md5/make @@ -0,0 +1,24 @@ + +echo "$MD5/libmd5.a:" >> $MAKEFILE + +case $PLATFORM in + + SunOS:*:i386) + echo " cd $MD5 && \$(MAKE) x86-solaris" >> $MAKEFILE + ;; + + *:i386) + echo " cd $MD5 && \$(MAKE) x86-elf" >> $MAKEFILE + ;; + + *) + if [ $CC = gcc ]; then + echo " cd $MD5 && \$(MAKE) gcc" >> $MAKEFILE + else + echo " cd $MD5 && \$(MAKE) cc" >> $MAKEFILE + fi + ;; + +esac + +echo >> $MAKEFILE diff --git a/src/event/ngx_event_mutex.c b/src/event/ngx_event_mutex.c index 9f1868f780..4f83e48652 100644 --- a/src/event/ngx_event_mutex.c +++ b/src/event/ngx_event_mutex.c @@ -22,7 +22,7 @@ ngx_int_t ngx_event_mutex_timedlock(ngx_event_mutex_t *m, ngx_msec_t timer, m->last = ev; ev->next = NULL; -#if (NGX_THREADS) +#if (NGX_THREADS0) ev->light = 1; #endif