summaryrefslogtreecommitdiff
path: root/ext/IO
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-01-04 21:45:22 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-01-04 21:45:22 +0000
commit824215e2e3b067efbb0104afd616d77cb9526d1a (patch)
treeb93b1885f5cde7228c43d45497ee1dcd249490a9 /ext/IO
parent023b4a438f77da7c7cd59a929c7e412fc387a93f (diff)
downloadperl-824215e2e3b067efbb0104afd616d77cb9526d1a.tar.gz
Integrate change #14062 from macperl;
Define setbuf, setvbuf for Mac OS p4raw-link: @14062 on //depot/maint-5.6/macperl: d2831b2dc1da27449e9029c3ee480940d54b287d p4raw-id: //depot/perl@14081 p4raw-integrated: from //depot/maint-5.6/macperl@14078 'merge in' ext/IO/IO.xs (@11007..)
Diffstat (limited to 'ext/IO')
-rw-r--r--ext/IO/IO.xs7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/IO/IO.xs b/ext/IO/IO.xs
index 9cefe08be5..dc810d68a5 100644
--- a/ext/IO/IO.xs
+++ b/ext/IO/IO.xs
@@ -26,6 +26,13 @@
#endif
#ifdef PerlIO
+#ifdef MACOS_TRADITIONAL
+#define PERLIO_IS_STDIO 1
+#undef setbuf
+#undef setvbuf
+#define setvbuf _stdsetvbuf
+#define setbuf(f,b) ( __sf_setbuf(f,b) )
+#endif
typedef int SysRet;
typedef PerlIO * InputStream;
typedef PerlIO * OutputStream;