summaryrefslogtreecommitdiff
path: root/2.0
diff options
context:
space:
mode:
authorChristian Heim <phreak@gentoo.org>2007-01-08 20:07:39 +0000
committerChristian Heim <phreak@gentoo.org>2007-01-08 20:07:39 +0000
commitec6f4e130084d7f3fa6cf1938646678a104a0edc (patch)
tree85fbf4062ccb7318c5d2818dc2544d181920b344 /2.0
parentWorking around issues with LC_ALL != C (#138591 thanks to vapier for the patch). (diff)
downloadapache-ec6f4e130084d7f3fa6cf1938646678a104a0edc.tar.gz
apache-ec6f4e130084d7f3fa6cf1938646678a104a0edc.tar.bz2
apache-ec6f4e130084d7f3fa6cf1938646678a104a0edc.zip
Fix mpm-peruser for alpha/sparc possibly amd64 (#105778).
Diffstat (limited to '2.0')
-rw-r--r--2.0/patches/11_all_peruser-0.2.0-alpha-sparc-fixes.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/2.0/patches/11_all_peruser-0.2.0-alpha-sparc-fixes.patch b/2.0/patches/11_all_peruser-0.2.0-alpha-sparc-fixes.patch
new file mode 100644
index 0000000..f4979ba
--- /dev/null
+++ b/2.0/patches/11_all_peruser-0.2.0-alpha-sparc-fixes.patch
@@ -0,0 +1,42 @@
+Index: apache-2.0.x/server/mpm/experimental/peruser/peruser.c
+===================================================================
+--- apache-2.0.x.orig/server/mpm/experimental/peruser/peruser.c
++++ apache-2.0.x/server/mpm/experimental/peruser/peruser.c
+@@ -1494,8 +1494,8 @@ static void child_main(int child_num_arg
+ apr_status_t rv;
+ apr_bucket_alloc_t *bucket_alloc;
+ int fd;
+- void* sock;
+- void* pod_sock;
++ apr_socket_t *sock = NULL;
++ apr_socket_t *pod_sock = NULL;
+
+ mpm_state = AP_MPMQ_STARTING; /* for benefit of any hooks that run as this
+ * child initializes
+@@ -1550,7 +1550,7 @@ static void child_main(int child_num_arg
+ _DBG("%s %d", child_type_string(CHILD_INFO_TABLE[my_child_num].type), my_child_num);
+
+ /* -- create new listener to receive from multiplexer -- */
+- apr_os_sock_put((void*)&sock, &CHILD_INFO_TABLE[my_child_num].senv->input, pconf);
++ apr_os_sock_put(&sock, &CHILD_INFO_TABLE[my_child_num].senv->input, pconf);
+ listen_clear();
+ listen_add(pconf, sock, receive_from_multiplexer);
+
+@@ -1563,7 +1563,7 @@ static void child_main(int child_num_arg
+ }
+
+ apr_os_file_get(&fd, pipe_of_death_in);
+- apr_os_sock_put((void*)&pod_sock, &fd, pconf);
++ apr_os_sock_put(&pod_sock, &fd, pconf);
+ listen_add(pconf, pod_sock, check_pipe_of_death);
+
+ (peruser_setup_child(my_child_num) && clean_child_exit(APEXIT_CHILDFATAL));
+@@ -1666,7 +1666,7 @@ static void child_main(int child_num_arg
+ /* if we accept() something we don't want to die, so we have to
+ * defer the exit
+ */
+- status = listensocks[offset].accept_func(&sock, &listensocks[offset], ptrans);
++ status = listensocks[offset].accept_func((void *)&sock, &listensocks[offset], ptrans);
+ SAFE_ACCEPT(accept_mutex_off()); /* unlock after "accept" */
+
+ if (status == APR_EGENERAL) {