From 95d3ab5de2a772663c6bba1ee99387a8884489b9 Mon Sep 17 00:00:00 2001 From: Greg Ames Date: Tue, 3 Apr 2001 02:15:35 +0000 Subject: [PATCH] tell the user what's going if APR threads aren't unavailable, and Apache is using a threaded MPM. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88681 13f79535-47bb-0310-9956-ffa450edef68 --- server/mpm/experimental/perchild/perchild.c | 4 ++++ server/mpm/perchild/perchild.c | 4 ++++ server/mpm/threaded/threaded.c | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/server/mpm/experimental/perchild/perchild.c b/server/mpm/experimental/perchild/perchild.c index ad19ac8e90..cb68180d92 100644 --- a/server/mpm/experimental/perchild/perchild.c +++ b/server/mpm/experimental/perchild/perchild.c @@ -73,6 +73,10 @@ #include #endif +#if !APR_HAVE_THREADS +#error The perchild MPM requires APR threads, but they are unavailable. +#endif + #define CORE_PRIVATE #include "ap_config.h" diff --git a/server/mpm/perchild/perchild.c b/server/mpm/perchild/perchild.c index ad19ac8e90..cb68180d92 100644 --- a/server/mpm/perchild/perchild.c +++ b/server/mpm/perchild/perchild.c @@ -73,6 +73,10 @@ #include #endif +#if !APR_HAVE_THREADS +#error The perchild MPM requires APR threads, but they are unavailable. +#endif + #define CORE_PRIVATE #include "ap_config.h" diff --git a/server/mpm/threaded/threaded.c b/server/mpm/threaded/threaded.c index 4bba8a20cb..4617268747 100644 --- a/server/mpm/threaded/threaded.c +++ b/server/mpm/threaded/threaded.c @@ -73,6 +73,10 @@ #include #endif +#if !APR_HAVE_THREADS +#error The threaded MPM requires APR threads, but they are unavailable. +#endif + #define CORE_PRIVATE #include "ap_config.h" -- 2.40.0