summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/doio.c b/doio.c
index 7f2aee130a..1a5c786ca6 100644
--- a/doio.c
+++ b/doio.c
@@ -577,7 +577,7 @@ GV *gv;
(void)ungetc(ch, IoIFP(io));
return FALSE;
}
-#ifdef USE_STDIO_PTR
+#if defined(USE_STDIO_PTR) && defined(STDIO_CNT_LVALUE)
if (FILE_cnt(IoIFP(io)) < -1)
FILE_cnt(IoIFP(io)) = -1;
#endif