diff auto/unix @ 2816:af0eaf409225

Solaris 10 has sched_yield() in libc
author Igor Sysoev <igor@sysoev.ru>
date Fri, 08 May 2009 09:36:16 +0000
parents 87e739049e93
children 38e59bcc35f2
line wrap: on
line diff
--- a/auto/unix
+++ b/auto/unix
@@ -173,6 +173,18 @@ ngx_feature_test="sched_yield()"
 . auto/feature
 
 
+if [ $ngx_found != yes ]; then
+
+    ngx_feature="sched_yield() in librt"
+    ngx_feature_libs="-lrt"
+    . auto/feature
+
+    if [ $ngx_found = yes ]; then
+        CORE_LIBS="$CORE_LIBS -lrt"
+    fi
+fi
+
+
 ngx_feature="mmap(MAP_ANON|MAP_SHARED)"
 ngx_feature_name="NGX_HAVE_MAP_ANON"
 ngx_feature_run=yes