This patch restores the LONG_DOUBLE undefs that prevent a build
of the POSIX extension on VMS. I suspect that the reason that
MMS will abort on certain warnings has to do with other system
utilities like LIBRARY (equivalent to ar) and LINK (equiv to cc -o)
which will also spew warnings if a module was compiled with a compiler
that had issued certain warnings (this can be a pain and a feature).
--- ext/POSIX/POSIX.xs.orig Thu Aug 17 19:03:33 2000
+++ ext/POSIX/POSIX.xs Fri Aug 18 17:18:52 2000
@@ -538,6 +538,24 @@
ptm->tm_wday = (jday + WEEKDAY_BIAS) % 7;
}
+#ifdef HAS_LONG_DOUBLE
+# if LONG_DOUBLESIZE > DOUBLESIZE
+# undef HAS_LONG_DOUBLE /* XXX until we figure out how to use them */
+# endif
+#endif
+
+#ifndef HAS_LONG_DOUBLE
+#ifdef LDBL_MAX
+#undef LDBL_MAX
+#endif
+#ifdef LDBL_MIN
+#undef LDBL_MIN
+#endif
+#ifdef LDBL_EPSILON
+#undef LDBL_EPSILON
+#endif
+#endif
+
static int
not_here(char *s)
{
End of Patch.
Peter Prymmer