Integrate change #14062 from macperl;
Jarkko Hietaniemi [Fri, 4 Jan 2002 21:45:22 +0000 (21:45 +0000)]
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..)

ext/IO/IO.xs

index 9cefe08..dc810d6 100644 (file)
 #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;