Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PATCH: 6698] build POSIX on VMS #2401

Closed
p5pRT opened this issue Aug 18, 2000 · 1 comment
Closed

[PATCH: 6698] build POSIX on VMS #2401

p5pRT opened this issue Aug 18, 2000 · 1 comment

Comments

@p5pRT
Copy link

p5pRT commented Aug 18, 2000

Migrated from rt.perl.org#3756 (status was 'resolved')

Searchable as RT3756$

@p5pRT
Copy link
Author

p5pRT commented Aug 18, 2000

From pvhp@forte.com

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).

Inline Patch
--- 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant