This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
circumvent VMS fileno bug in old DEC C version
authorCraig A. Berry <craigberry@mac.com>
Mon, 6 Mar 2000 15:36:13 +0000 (09:36 -0600)
committerJarkko Hietaniemi <jhi@iki.fi>
Mon, 6 Mar 2000 21:46:18 +0000 (21:46 +0000)
To: vmsperl@perl.org, perl5-porters@perl.org
Cc: jhi@iki.fi, Charles Bailey <BAILEY@newman.upenn.edu>, gsar@activestate.com
Message-Id: <4.2.2.20000306153539.00ca6420@exchi01.midwest.metamorgs.com>

p4raw-id: //depot/cfgperl@5588

vms/vmsish.h

index a09d2be..34efcb6 100644 (file)
@@ -717,4 +717,9 @@ typedef char __VMS_SEPYTOTORP__;
 #undef HAS_NTOHL
 #endif
 
+/* The C RTL manual says to undef the macro for DEC C 5.2 and lower. */
+#if defined(fileno) && defined(__DECC_VER) && __DECC_VER < 50300000
+#  undef fileno 
+#endif 
+
 #endif  /* __vmsish_h_included */