This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Under Mac OS X /dev/stdout is normally a symlink,
[perl5.git] / perlsdio.h
index fd990c0..d09b632 100644 (file)
@@ -1,4 +1,9 @@
 #ifdef PERLIO_IS_STDIO
+
+#ifdef NETWARE
+       #include "nwstdio.h"
+#else
+
 /*
  * This file #define-s the PerlIO_xxx abstraction onto stdio functions.
  * Make this as close to original stdio as possible.
 #define PerlIO_stdout()                        stdout
 #define PerlIO_stdin()                 stdin
 
-#define PerlIO_fdupopen(f)             (f)
 #define PerlIO_isutf8(f)               0
 
 #define PerlIO_printf                  fprintf
 #define PerlIO_stdoutf                 printf
 #define PerlIO_vprintf(f,fmt,a)                vfprintf(f,fmt,a)
 #define PerlIO_write(f,buf,count)      fwrite1(buf,1,count,f)
+#define PerlIO_unread(f,buf,count)     (-1)
 #define PerlIO_open                    fopen
 #define PerlIO_fdopen                  fdopen
 #define PerlIO_reopen                  freopen
 #define PerlIO_get_bufsiz(f)           (abort(),0)
 #endif
 
+#endif /* NETWARE */
 #endif /* PERLIO_IS_STDIO */