Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#3 closed enhancement (fixed)

POSIX Semaphores can be used at Solaris

Reported by: dsdiv.moikrug.ru Owned by: somebody
Priority: minor Milestone:
Component: nginx-core Version: 1.0.x
Keywords: Solaris Cc:
uname -a: SunOS unknown 5.10 Generic_142910-17 i86pc i386 i86pc
nginx -V:

Description (last modified by mdounin)

Here is Nginx 1.0.5 patch:

--- auto/unix.orig      Fri Aug  5 18:17:24 2011
+++ auto/unix   Fri Aug  5 18:19:38 2011
@@ -620,6 +620,19 @@
 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

Change History (3)

comment:1 Changed 8 years ago by mdounin

  • Description modified (diff)
  • Status changed from new to accepted

Thank you, patch looks ok and passes tests here.

comment:2 Changed 8 years ago by mdounin

  • Resolution set to fixed
  • Status changed from accepted to closed

Committed as r4004, thanks!

comment:3 Changed 8 years ago by is

In [4045/nginx]:

(The changeset message doesn't reference this ticket)

Note: See TracTickets for help on using tickets.