From: Jarkko Hietaniemi Date: Fri, 4 Jan 2002 21:45:22 +0000 (+0000) Subject: Integrate change #14062 from macperl; X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=824215e2e3b067efbb0104afd616d77cb9526d1a;p=p5sagit%2Fp5-mst-13.2.git 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..) --- diff --git a/ext/IO/IO.xs b/ext/IO/IO.xs index 9cefe08..dc810d6 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;