From: Bradley Nicholes Date: Tue, 8 Jan 2002 21:16:08 +0000 (+0000) Subject: Code updates to allow Mod_Rewrite and Mod_Auth_DBM to build on NetWare X-Git-Tag: 2.0.30~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3356d10c5b8d8364c6c6ea8221208c9d66f7e7ad;p=apache Code updates to allow Mod_Rewrite and Mod_Auth_DBM to build on NetWare Submitted by: G�nter Knauf git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92775 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/mappers/mod_rewrite.c b/modules/mappers/mod_rewrite.c index ccad11223e..254e814996 100644 --- a/modules/mappers/mod_rewrite.c +++ b/modules/mappers/mod_rewrite.c @@ -114,7 +114,7 @@ #include "http_protocol.h" #include "mod_rewrite.h" -#if !defined(OS2) && !defined(WIN32) && !defined(BEOS) +#if !defined(OS2) && !defined(WIN32) && !defined(BEOS) && !defined(NETWARE) #include "unixd.h" #endif @@ -4154,13 +4154,6 @@ static char *find_char_in_brackets(char *s, int c, int left, int right) ** */ -#ifdef NETWARE -int main(int argc, char *argv[]) -{ - ExitThread(TSR_THREAD, 0); -} -#endif - /* the apr_table_t of commands we provide */ static const command_rec command_table[] = { AP_INIT_FLAG( "RewriteEngine", cmd_rewriteengine, NULL, OR_FILEINFO, diff --git a/os/netware/pre_nw.h b/os/netware/pre_nw.h index 6a3d99c45d..ce5ebe4833 100644 --- a/os/netware/pre_nw.h +++ b/os/netware/pre_nw.h @@ -37,6 +37,12 @@ typedef unsigned long long uint64_t; #define __int64 long long #endif +/* Don't use the DBM rewrite map for mod_rewrite */ +#define NO_DBM_REWRITEMAP + +/* Allow MOD_AUTH_DBM to use APR */ +#define AP_AUTH_DBM_USE_APR + #endif