summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2011-08-17 08:35:54 +0000
committerMaxim Dounin <mdounin@mdounin.ru>2011-08-17 08:35:54 +0000
commitb4d9ee220c8b7ea23fa3e1357e537840b99ce5e2 (patch)
treec3e024ebc5d15fb0b726d11876ef77debfab2d95
parent1a664a80a9cf7186fd5a0337dc36d432af7ddd8f (diff)
downloadnginx-b4d9ee220c8b7ea23fa3e1357e537840b99ce5e2.tar.gz
nginx-b4d9ee220c8b7ea23fa3e1357e537840b99ce5e2.tar.bz2
Detect POSIX semaphores in librt on Solaris (ticket #3).
Patch by Denis Ivanov.
Diffstat (limited to '')
-rwxr-xr-xauto/unix13
1 files changed, 13 insertions, 0 deletions
diff --git a/auto/unix b/auto/unix
index 190d4a43f..b3541c56e 100755
--- a/auto/unix
+++ b/auto/unix
@@ -620,6 +620,19 @@ if [ $ngx_found = no ]; then
fi
+if [ $ngx_found = no ]; then
+
+ # Solaris has POSIX semaphores in librt
+ ngx_feature="POSIX semaphores in librt"
+ ngx_feature_libs=-lrt
+ . auto/feature
+
+ if [ $ngx_found = yes ]; then
+ CORE_LIBS="$CORE_LIBS -lrt"
+ fi
+fi
+
+
ngx_feature="struct msghdr.msg_control"
ngx_feature_name="NGX_HAVE_MSGHDR_MSG_CONTROL"
ngx_feature_run=no