From: Dan Sugalski Date: Thu, 7 Aug 1997 00:00:00 +0000 (+0000) Subject: posix.xs broken on VMS 7.1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5f6761f91ec05d535baaab2c6bf33877a80d1dda;p=p5sagit%2Fp5-mst-13.2.git posix.xs broken on VMS 7.1 private-msgid: 3.0.2.32.19970718095755.00875ba0@stargate.lbcc.cc.or.us --- diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs index f723db7..a09eafe 100644 --- a/ext/POSIX/POSIX.xs +++ b/ext/POSIX/POSIX.xs @@ -40,7 +40,7 @@ #include #include #include -#include +#include /* see hints/sunos_4_1.sh */ #include #if defined(__VMS) && !defined(__POSIX_SOURCE) @@ -55,7 +55,10 @@ # define mkfifo(a,b) (not_here("mkfifo"),-1) # define tzset() not_here("tzset") -# if __VMS_VER < 70000000 +#if ((__VMS_VER >= 70000000) && (__DECC_VER >= 50200000)) || (__CRTL_VER >= 70000000) +# define HAS_TZNAME /* shows up in VMS 7.0 or Dec C 5.6 */ +# include +#else /* The default VMS emulation of Unix signals isn't very POSIXish */ typedef int sigset_t; # define sigpending(a) (not_here("sigpending"),0) @@ -125,9 +128,7 @@ # define sa_handler sv_handler # define sa_mask sv_mask # define sigsuspend(set) sigpause(*set) -# else -# define HAS_TZNAME /* shows up in VMS 7.0 */ -# endif /* __VMS_VER < 70000000 */ +# endif /* __VMS_VER >= 70000000 or Dec C 5.6 */ /* The POSIX notion of ttyname() is better served by getname() under VMS */ static char ttnambuf[64];