]> granicus.if.org Git - apache/commitdiff
OS specific file for NetWare
authorBradley Nicholes <bnicholes@apache.org>
Tue, 16 Oct 2001 23:25:46 +0000 (23:25 +0000)
committerBradley Nicholes <bnicholes@apache.org>
Tue, 16 Oct 2001 23:25:46 +0000 (23:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91513 13f79535-47bb-0310-9956-ffa450edef68

os/netware/Apache.def [new file with mode: 0644]
os/netware/modules.c [new file with mode: 0644]
os/netware/pre_nw.h [new file with mode: 0644]

diff --git a/os/netware/Apache.def b/os/netware/Apache.def
new file mode 100644 (file)
index 0000000..ef051eb
--- /dev/null
@@ -0,0 +1,4 @@
+#MODULE  APRLIB.NLM
+MODULE  LIBC.NLM
+MODULE  WS2_32.NLM
+FLAG_ON 3
diff --git a/os/netware/modules.c b/os/netware/modules.c
new file mode 100644 (file)
index 0000000..3868521
--- /dev/null
@@ -0,0 +1,77 @@
+/* modules.c --- major modules compiled into Apache for NetWare.
+ * Only insert an entry for a module if it must be compiled into
+ * the core server
+ */
+
+#define CORE_PRIVATE
+#include "httpd.h"
+#include "http_config.h"
+
+extern module core_module;
+extern module mpm_netware_module;
+extern module http_module;
+extern module so_module;
+extern module mime_module;
+extern module access_module;
+extern module auth_module;
+extern module negotiation_module;
+extern module include_module;
+extern module autoindex_module;
+extern module dir_module;
+extern module cgi_module;
+extern module userdir_module;
+extern module alias_module;
+extern module env_module;
+extern module log_config_module;
+extern module asis_module;
+extern module imap_module;
+extern module actions_module;
+extern module setenvif_module;
+
+module *ap_prelinked_modules[] = {
+  &core_module,
+  &mpm_netware_module,
+  &http_module,
+  &so_module,
+  &mime_module,
+  &access_module,
+  &auth_module,
+  &negotiation_module,
+  &include_module,
+  &autoindex_module,
+  &dir_module,
+  &cgi_module,
+  &userdir_module,
+  &alias_module,
+  &env_module,
+  &log_config_module,
+  &asis_module,
+  &imap_module,
+  &actions_module,
+  &setenvif_module,
+  NULL
+};
+
+module *ap_preloaded_modules[] = {
+  &core_module,
+  &mpm_netware_module,
+  &http_module,
+  &so_module,
+  &mime_module,
+  &access_module,
+  &auth_module,
+  &negotiation_module,
+  &include_module,
+  &autoindex_module,
+  &dir_module,
+  &cgi_module,
+  &userdir_module,
+  &alias_module,
+  &env_module,
+  &log_config_module,
+  &asis_module,
+  &imap_module,
+  &actions_module,
+  &setenvif_module,
+  NULL
+};
diff --git a/os/netware/pre_nw.h b/os/netware/pre_nw.h
new file mode 100644 (file)
index 0000000..6a3d99c
--- /dev/null
@@ -0,0 +1,43 @@
+#ifndef __pre_nw__
+#define __pre_nw__
+
+#pragma precompile_target "precomp.mch"
+#define NETWARE
+
+
+#define N_PLAT_NLM
+
+/* hint for MSL C++ that we're on NetWare platform */
+#define __NETWARE__
+
+/* the FAR keyword has no meaning in a 32-bit environment 
+   but is used in the SDK headers so we take it out */
+#define FAR
+#define far
+
+/* no-op for Codewarrior C compiler; a functions are cdecl 
+   by default */
+#define cdecl
+
+/* if we have wchar_t enabled in C++, predefine this type to avoid
+   a conflict in Novell's header files */
+#if (__option(cplusplus) && __option(wchar_type))
+#define _WCHAR_T
+#endif
+
+/* C9X defintion used by MSL C++ library */
+#define DECIMAL_DIG 17
+
+/* define long long typedefs for Watcom compatiblity */
+typedef long long int64_t;
+typedef unsigned long long uint64_t;
+
+/* some code may want to use the MS convention for long long */
+#ifndef __int64
+#define __int64 long long
+#endif
+
+#endif
+
+
+