summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorBradley Nicholes <bnicholes@apache.org>2001-10-16 23:25:46 +0000
committerBradley Nicholes <bnicholes@apache.org>2001-10-16 23:25:46 +0000
commit952645203db1c3db432dc34e1ff91e4110679728 (patch)
tree592f3405d58ced8f0ee8de41317c5c997c763ac0 /os
parentfb7781b279efcee44b030da25adc38f33e2bf2e7 (diff)
downloadhttpd-952645203db1c3db432dc34e1ff91e4110679728.tar.gz
OS specific file for NetWare
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91513 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'os')
-rw-r--r--os/netware/Apache.def4
-rw-r--r--os/netware/modules.c77
-rw-r--r--os/netware/pre_nw.h43
3 files changed, 124 insertions, 0 deletions
diff --git a/os/netware/Apache.def b/os/netware/Apache.def
new file mode 100644
index 0000000000..ef051ebf23
--- /dev/null
+++ b/os/netware/Apache.def
@@ -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
index 0000000000..3868521c85
--- /dev/null
+++ b/os/netware/modules.c
@@ -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
index 0000000000..6a3d99c45d
--- /dev/null
+++ b/os/netware/pre_nw.h
@@ -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
+
+
+