From 43e68337349be6ec5aef250e93ef54a487165dc9 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Thu, 30 Aug 2001 05:52:25 +0000 Subject: [PATCH] * configure.in: added Cygwin specific APR_SETVARs. * os/config.m4: added Cygwin specific values for $OS and $OS_DIR. $OS_DIR will change to "cygwin" as soon as I get the DSO/DLL things clean as with 1.3.20. * support/logresolve.c: added OS specific #ifdef statement to define h_errno as extern __declspec(dllimport); it's imported from the cygwin1.dll itself. Submitted by: Stipe Tolj git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90805 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES | 6 ++++++ configure.in | 4 ++++ os/config.m4 | 4 ++++ support/logresolve.c | 4 ++++ 4 files changed, 18 insertions(+) diff --git a/CHANGES b/CHANGES index 0c7451aa1d..2a1022c2b9 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,11 @@ Changes with Apache 2.0.26-dev + *) Some initial support for the cygwin platform [prefork only]. + This is not to be confused with support for the WinNT/Win32 + platform, which is the recommended configuration for native + Win32 users. The cygwin platform support is recommended for + cygwin platform users. [Stipe Tolj ] + *) Changed syntax of Set{Input|Output}Filter. The list of filters must be semicolon delimited (if more than one filter is given.) The Set{Input|Output}Filter directive now overrides a parent diff --git a/configure.in b/configure.in index a7846e4790..19027d4fcf 100644 --- a/configure.in +++ b/configure.in @@ -157,6 +157,10 @@ case $host in dnl This is a hack -- we should be using AC_TRY_RUN instead ap_platform_runtime_link_flag="-R" ;; + *cygwin*) + APR_SETVAR(APACHE_MPM, [prefork]) + APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1]) + ;; esac dnl diff --git a/os/config.m4 b/os/config.m4 index 669c0bd67a..704204360f 100644 --- a/os/config.m4 +++ b/os/config.m4 @@ -13,6 +13,10 @@ bs2000*) OS="unix" OS_DIR=bs2000 # only the OS_DIR is platform specific. ;; +*cygwin*) + OS="cygwin" + OS_DIR="unix" + ;; *) OS="unix" OS_DIR=$OS;; diff --git a/support/logresolve.c b/support/logresolve.c index 237e091b2c..197181449a 100644 --- a/support/logresolve.c +++ b/support/logresolve.c @@ -117,8 +117,12 @@ struct nsrec { */ #ifndef h_errno +#ifdef __CYGWIN__ +extern __declspec(dllimport) int h_errno; +#else extern int h_errno; /* some machines don't have this in their headers */ #endif +#endif /* largest value for h_errno */ -- 2.50.1