summaryrefslogtreecommitdiffstats
path: root/util/pl/netware.pl
diff options
context:
space:
mode:
Diffstat (limited to 'util/pl/netware.pl')
-rw-r--r--util/pl/netware.pl20
1 files changed, 16 insertions, 4 deletions
diff --git a/util/pl/netware.pl b/util/pl/netware.pl
index 2258a39920..c05789b22f 100644
--- a/util/pl/netware.pl
+++ b/util/pl/netware.pl
@@ -2,19 +2,25 @@
#
# The import files and other misc imports needed to link
+@misc_imports = ("GetProcessSwitchCount", "RunningProcess",
+ "GetSuperHighResolutionTimer");
if ($LIBC)
{
- @import_files = ("libc.imp", "ws2nlm.imp");
+ @import_files = ("libc.imp");
@module_files = ("libc");
}
else
{
# clib build
- @import_files = ("clib.imp", "ws2nlm.imp");
+ @import_files = ("clib.imp");
@module_files = ("clib");
+ push(@misc_imports, "_rt_modu64%16", "_rt_divu64%16");
}
-@misc_imports = ("GetProcessSwitchCount", "RunningProcess",
- "GetSuperHighResolutionTimer" );
+if (!$BSDSOCK)
+{
+ push(@import_files, "ws2nlm.imp");
+}
+
# The "IMPORTS" environment variable must be set and point to the location
# where import files (*.imp) can be found.
@@ -122,6 +128,12 @@ else
$lflags.=" -entry _Prelude -exit _Stop";
}
+# If BSD Socket support is requested, set a define for the compiler
+if ($BSDSOCK)
+{
+ $cflags.=" -DNETWARE_BSDSOCK";
+}
+
# linking stuff
# for the output directories use the mk1mf.pl values with "_nw" appended