Hi all,
after last changes in a src/modules/standard/mod_auth.c file it is
impossible to compile the Apache core for NetWare platform. I can't
understand why these changes have been commited untested. Patch
attached. Thanks.
Pavel
P.S.: The second try with my older (gcc related) proposed updates in
src/include/util_uri.h and src/os/netware/os.h files. Attached.
--- mod_auth.c.orig Tue Sep 11 06:12:02 2001
+++ mod_auth.c Wed Sep 12 16:24:46 2001
@@ -278,9 +278,9 @@
* owner of the document.
*/
if (strcmp(w, "file-owner") == 0) {
-#if defined(WIN32)
- ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|APLOG_ERROR, r,
- "'Require file-user' not supported on Windows");
+#if defined(WIN32) || defined(NETWARE)
+ ap_log_rerror(APLOG_MARK, APLOG_ERR, r,
+ "'Require file-user' not supported on Windows/NetWare");
return HTTP_UNAUTHORIZED;
#else
struct passwd *pwent;
@@ -313,9 +313,9 @@
#endif
}
if (strcmp(w, "file-group") == 0) {
-#if defined(WIN32)
- ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|APLOG_ERROR, r,
- "'Require file-group' not supported on Windows");
+#if defined(WIN32) || defined(NETWARE)
+ ap_log_rerror(APLOG_MARK, APLOG_ERR, r,
+ "'Require file-group' not supported on Windows/NetWare");
return HTTP_UNAUTHORIZED;
#else
struct group *grent;
--- src/os/netware/os.h Wed Aug 22 00:12:00 2001
+++ src_gcc/os/netware/os.h Sun Sep 2 02:23:36 2001
@@ -136,7 +136,7 @@
void AMCSocketCleanup(void);
void clean_parent_exit(int code);
-inline int ap_os_is_path_absolute(const char *file)
+static inline int ap_os_is_path_absolute(const char *file)
{
char *s = strstr (file, "://");
--- util_uri.h.orig Mon Feb 26 16:49:32 2001
+++ util_uri.h Mon Aug 27 15:44:41 2001
@@ -106,10 +106,10 @@
unsigned short port; /* The port number, numeric, valid only if port_str !=
NULL */
- unsigned is_initialized:1;
+ unsigned char is_initialized:1;
- unsigned dns_looked_up:1;
- unsigned dns_resolved:1;
+ unsigned char dns_looked_up:1;
+ unsigned char dns_resolved:1;
} uri_components;