summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2000-10-29 17:43:28 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2000-10-29 17:43:28 +0000
commit02f66e2f9235025f08502389e56df70aa71733c0 (patch)
tree7e6887d929c96fbb442c648e738ade9fddea77b9 /perlio.c
parentbb9950b796df42e2f824a072ae878c87e977be20 (diff)
downloadperl-02f66e2f9235025f08502389e56df70aa71733c0.tar.gz
Include <unistd.h> to get correct lseek() prototype etc.
(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
Diffstat (limited to 'perlio.c')
-rw-r--r--perlio.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/perlio.c b/perlio.c
index 066d813f69..6224b767fd 100644
--- 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)));