]> granicus.if.org Git - apache/commitdiff
Fix the prefork MPM to make it compile and work again out-of-the-box.
authorRyan Bloom <rbb@apache.org>
Thu, 13 Jul 2000 16:05:07 +0000 (16:05 +0000)
committerRyan Bloom <rbb@apache.org>
Thu, 13 Jul 2000 16:05:07 +0000 (16:05 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85832 13f79535-47bb-0310-9956-ffa450edef68

include/ap_listen.h
server/listen.c

index 729ba5c50bfec4d802f5b424d9875dab43b3b1c0..c5a016871d5cd52fd51a1c64365012c0a7178329 100644 (file)
@@ -57,6 +57,7 @@
 
 #include "apr_network_io.h"
 #include "http_config.h"
+#include "mpm.h"
 
 typedef struct ap_listen_rec ap_listen_rec;
 struct ap_listen_rec {
@@ -72,7 +73,7 @@ struct ap_listen_rec {
 extern ap_listen_rec *ap_listeners;
 
 void ap_listen_pre_config(void);
-#ifndef WIN32
+#if !defined(WIN32) && !defined(PREFORK_MPM)
 int ap_setup_listeners(server_rec *s);
 #else
 int ap_listen_open(process_rec *process, unsigned port);
index c0715242c2d99e2abb3474c1ffa519ef101e1481..918931e156fd8553886d4bdc48f4c508bf836289 100644 (file)
@@ -64,6 +64,7 @@
 #include "http_config.h"
 #include "ap_listen.h"
 #include "http_log.h"
+#include "mpm.h"
 #ifdef HAVE_STRING_H
 #include <string.h>
 #endif
@@ -201,7 +202,7 @@ static void alloc_listener(process_rec *process, char *addr, unsigned int port)
     ap_listeners = new;
 }
 
-#ifndef WIN32
+#if !defined(WIN32) && !defined(PREFORK_MPM)
 static
 #endif
 int ap_listen_open(process_rec *process, unsigned port)
@@ -243,7 +244,7 @@ int ap_listen_open(process_rec *process, unsigned port)
     return num_open ? 0 : -1;
 }
 
-#ifndef WIN32
+#if !defined(WIN32) && !defined(PREFORK_MPM)
 int ap_setup_listeners(server_rec *s)
 {
     ap_listen_rec *lr;