summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-11-22 21:38:25 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-11-22 21:38:25 +0000
commit3f270f98f93055407790f4fc65bd60980f2723b2 (patch)
tree0a98c9011d0fe8f97d32cd6644069fd7cd145ed2 /perl.h
parente1901655935137420b3a46ad23c873753fcbbbc7 (diff)
downloadperl-3f270f98f93055407790f4fc65bd60980f2723b2.tar.gz
Go ahead and #include <unistd.h> in perl.h.
p4raw-id: //depot/perl@7816
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl.h b/perl.h
index 9418b52cc0..de6185b401 100644
--- a/perl.h
+++ b/perl.h
@@ -496,12 +496,16 @@ register struct op *Perl_op asm(stringify(OP_IN_REGISTER));
# include <sys/param.h>
#endif
-
/* Use all the "standard" definitions? */
#if defined(STANDARD_C) && defined(I_STDLIB)
# include <stdlib.h>
#endif
+/* If this causes problems, set i_unistd=undef in the hint file. */
+#ifdef I_UNISTD
+# include <unistd.h>
+#endif
+
#ifdef PERL_MICRO /* Last chance to export Perl_my_swap */
# define MYSWAP
#endif