Include <unistd.h> to get correct lseek() prototype etc.
Nick Ing-Simmons [Sun, 29 Oct 2000 17:43:28 +0000 (17:43 +0000)]
(I thought perl.h did that) - down to two fails
 - comp/require.t (last test)
 - lib/io_xs.t - possibly import/export of FILE * ?

p4raw-id: //depot/perlio@7482

perlio.c

index 066d813..6224b76 100644 (file)
--- a/perlio.c
+++ b/perlio.c
@@ -7,7 +7,6 @@
  *
  */
 
-
 #define VOIDUSED 1
 #ifdef PERL_MICRO
 #   include "uconfig.h"
@@ -91,6 +90,10 @@ PerlIO_init(void)
 /* Implement all the PerlIO interface ourselves.
 */
 
+#ifdef I_UNISTD
+#include <unistd.h>
+#endif
+
 #undef printf
 void PerlIO_debug(char *fmt,...) __attribute__((format(printf,1,2)));