]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix a problem with the definition of union semun which broke
authorJeff Trawick <trawick@apache.org>
Fri, 20 Sep 2002 10:13:57 +0000 (10:13 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 20 Sep 2002 10:13:57 +0000 (10:13 +0000)
System V semaphores on systems where sizeof(int) != sizeof(long).

PR:               12072
Submitted by:   <winterling@de.ibm.com>
Reviewed by:   Jeff Trawick, Justin Erenkrantz

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@96927 13f79535-47bb-0310-9956-ffa450edef68

src/CHANGES
src/main/http_main.c

index d15bb6078e264f391368fc080f7768ab43bdb5a1..ca4271abf097c96ade335e0f8953620c081290b0 100644 (file)
@@ -1,5 +1,9 @@
 Changes with Apache 1.3.27
 
+  *) Fix a problem with the definition of union semun which broke
+     System V semaphores on systems where sizeof(int) != sizeof(long).
+     PR 12072  [<winterling@de.ibm.com>]
+
   *) The protocol version (eg: HTTP/1.1) in the request line parsing
      is now case insensitive. This closes a few PRs and implies that
      ProtocolReqCheck will trigger on *true* invalid protocols.
index db3e04b898db4fc7cdfab5a69b9dd5065c62829b..0c9333d89d98e82f1c06b269ceef9d01ad1787fb 100644 (file)
@@ -749,9 +749,8 @@ accept_mutex_methods_s accept_mutex_pthread_s = {
 #include <sys/sem.h>
 
 #ifdef NEED_UNION_SEMUN
-/* it makes no sense, but this isn't defined on solaris */
 union semun {
-    long val;
+    int val;
     struct semid_ds *buf;
     ushort *array;
 };