summaryrefslogtreecommitdiff
path: root/filehandles.xs
diff options
context:
space:
mode:
Diffstat (limited to 'filehandles.xs')
-rw-r--r--filehandles.xs2
1 files changed, 2 insertions, 0 deletions
diff --git a/filehandles.xs b/filehandles.xs
index f262e89..b24b929 100644
--- a/filehandles.xs
+++ b/filehandles.xs
@@ -146,6 +146,7 @@ BOOT:
bareword_check(stat, OP_STAT);
bareword_check(stat, OP_LSTAT);
+#if PERL_VERSION_GE(5,31,1)
bareword_check(stat, OP_FTRREAD);
bareword_check(stat, OP_FTRWRITE);
bareword_check(stat, OP_FTREXEC);
@@ -173,3 +174,4 @@ BOOT:
bareword_check(stat, OP_FTTTY);
bareword_check(stat, OP_FTTEXT);
bareword_check(stat, OP_FTBINARY);
+#endif