summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-12-05 07:08:14 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2014-12-08 18:37:03 -0500
commitd3ac2b769b5ecec58c3a4173895286445c881f8a (patch)
treefbcbe8777765ac939c3c08a47e10b3e400fd2b1c /hints
parent98efe49c425d59b8c1a5252ff9fd78f7a8423a78 (diff)
downloadperl-d3ac2b769b5ecec58c3a4173895286445c881f8a.tar.gz
z/OS has nan() in math lib but seemingly broken.
Diffstat (limited to 'hints')
-rw-r--r--hints/os390.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/hints/os390.sh b/hints/os390.sh
index d9b0f8afbd..453f30f386 100644
--- a/hints/os390.sh
+++ b/hints/os390.sh
@@ -250,3 +250,12 @@ d_attribute_noreturn='undef'
d_attribute_pure='undef'
d_attribute_unused='undef'
d_attribute_warn_unused_result='undef'
+
+# nan() is in libm but doesn't work as expected: nan("") or nan("0")
+# returns zero, not a nan:
+# http://www-01.ibm.com/support/knowledgecenter/SSLTBW_1.12.0/com.ibm.zos.r12.bpxbd00/nan.htm%23nan?lang=en
+# contrast with e.g.
+# http://www.cplusplus.com/reference/cmath/nan-function/
+# (C++ but C99 math agrees)
+# XXX: Configure scan for proper behavior
+d_nan='undef'