summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.Merijn Brand <h.m.brand@xs4all.nl>2009-04-18 16:55:34 +0200
committerH.Merijn Brand <h.m.brand@xs4all.nl>2009-04-18 16:55:34 +0200
commit58ccccf6974c5065b1e46a35535f9539731d055a (patch)
treecf08c2066e114d7f944220f69482e16e5fbadc0d
parentce75ce2a31fe3e5dc80ec02db17cf150542e3d4a (diff)
downloadperl-58ccccf6974c5065b1e46a35535f9539731d055a.tar.gz
Here are some patches for QNX6 against 5.10.x. Unpatched and patched
smoke reports also attached. From: Sean Boudreau <seanb@qnx.com> Date: Sun, 12 Apr 2009 10:18:39 -0400 Message-ID: <20090412141839.GA27971644@qnx.com>
-rw-r--r--hints/qnx.sh9
-rw-r--r--lib/Cwd.pm2
-rw-r--r--lib/Module/Build.pm1
3 files changed, 8 insertions, 4 deletions
diff --git a/hints/qnx.sh b/hints/qnx.sh
index 3ef2f32afe..473815cae5 100644
--- a/hints/qnx.sh
+++ b/hints/qnx.sh
@@ -242,7 +242,7 @@ if [ "$osname" = "qnx" ]; then
else
# $^O eq nto
- ccflags='-DDLOPEN_WONT_DO_RELATIVE_PATHS'
+ ccflags='-U__STRICT_ANSI__'
# Options required to get dynamic linking to work
lddlflags='-shared'
@@ -259,7 +259,10 @@ else
# If we use perl's malloc, it dies with an invalid sbrk.
# This is probably worth tracking down someday.
usemymalloc='false'
+
+ libswanted=`echo " $libswanted "| sed 's/ malloc / /'`
- # crypt isn't detected in the C library even though it's there.
- d_crypt='define'
+ # Some routines are only in our static libc.
+ # eg crypt() getlogin() getlogin_r()
+ usenm=false
fi
diff --git a/lib/Cwd.pm b/lib/Cwd.pm
index 83239bf16a..8121231639 100644
--- a/lib/Cwd.pm
+++ b/lib/Cwd.pm
@@ -289,6 +289,7 @@ my %METHOD_MAP =
abs_path => 'fast_abs_path',
},
+ # QNX4. QNX6 has a $os of 'nto'.
qnx =>
{
cwd => '_qnx_cwd',
@@ -327,7 +328,6 @@ my %METHOD_MAP =
);
$METHOD_MAP{NT} = $METHOD_MAP{MSWin32};
-$METHOD_MAP{nto} = $METHOD_MAP{qnx};
# Find the pwd command in the expected locations. We assume these
diff --git a/lib/Module/Build.pm b/lib/Module/Build.pm
index e8bf0c6f64..fe453b5d67 100644
--- a/lib/Module/Build.pm
+++ b/lib/Module/Build.pm
@@ -54,6 +54,7 @@ my %OSTYPES = qw(
interix Unix
gnu Unix
gnukfreebsd Unix
+ nto Unix
dos Windows
MSWin32 Windows