summaryrefslogtreecommitdiff
path: root/ext/XS
diff options
context:
space:
mode:
Diffstat (limited to 'ext/XS')
-rw-r--r--ext/XS/Typemap/Typemap.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/XS/Typemap/Typemap.t b/ext/XS/Typemap/Typemap.t
index 1699c991dc..accb6c40d4 100644
--- a/ext/XS/Typemap/Typemap.t
+++ b/ext/XS/Typemap/Typemap.t
@@ -313,8 +313,8 @@ if (defined $fh) {
# print to it using normal perl
ok(print $fh "$lines[1]");
- # close it using XS
- ok( T_STDIO_close( $fh ) );
+ # close it using XS if using perlio, using Perl otherwise
+ ok( $Config{useperlio} ? T_STDIO_close( $fh ) : close( $fh ) );
# open from perl, and check contents
open($fh, "< $testfile");