From e2c8ad71221ebcf5ca6331811118f9a6d18aec45 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 10 May 2011 11:39:13 +0000 Subject: use POSIX semaphores in shmtx instead of sched_yield() number of spinlock spins are increased twice --- src/os/unix/ngx_solaris_config.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/os/unix/ngx_solaris_config.h') diff --git a/src/os/unix/ngx_solaris_config.h b/src/os/unix/ngx_solaris_config.h index ae8212d8a..6b3d42eaa 100644 --- a/src/os/unix/ngx_solaris_config.h +++ b/src/os/unix/ngx_solaris_config.h @@ -57,6 +57,11 @@ #include +#if (NGX_HAVE_POSIX_SEM) +#include +#endif + + #if (NGX_HAVE_POLL) #include #endif -- cgit