summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2003-05-17 04:53:06 +0000
committerGurusamy Sarathy <gsar@cpan.org>2003-05-17 04:53:06 +0000
commit6652bd42f22f15f457e3753f6c9a7ef4c35fc4cf (patch)
tree580fa57b1ff462ce88818d4f8e444ccca6acf10f /pp_sys.c
parent1c8780751e85c3ece441fc8ecdff2f1dc99f9906 (diff)
downloadperl-6652bd42f22f15f457e3753f6c9a7ef4c35fc4cf.tar.gz
change#16723 broke the ioctl() return value on platforms
that have ioctl() but no fcntl() (e.g. windows) change#17577 then attempted to fix the bustage, but got it wrong p4raw-link: @17577 on //depot/perl: c214f4ad8bbb376b6ebfcb9c9173169f2cc8986f p4raw-link: @16723 on //depot/perl: 4808266b7a2aefa68f681e0378316e43728b49d8 p4raw-id: //depot/perl@19534
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pp_sys.c b/pp_sys.c
index 13ddfae9c0..ae6d986a85 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -2175,7 +2175,9 @@ PP(pp_ioctl)
#else
retval = fcntl(PerlIO_fileno(IoIFP(io)), func, s);
#endif
+#endif
+#if defined(HAS_IOCTL) || defined(HAS_FCNTL)
if (SvPOK(argsv)) {
if (s[SvCUR(argsv)] != 17)
DIE(aTHX_ "Possible memory corruption: %s overflowed 3rd argument",