summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-02-19 15:54:04 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-02-19 15:54:04 +0000
commit9a34ef1dede5fef4f3211de7a12cc37f4645a3bd (patch)
tree8da787182ae843967c47e779685b499b0074d253 /perl.h
parent67398a75376ae8069b240ba2953215647f70366c (diff)
downloadperl-9a34ef1dede5fef4f3211de7a12cc37f4645a3bd.tar.gz
some rearrangement of the includes for easier "microperl" build;
add PERL_MICRO guards supplied by Simon Cozens <simon@brecon.co.uk> p4raw-id: //depot/perl@5143
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index 0d3f0b8333..b47745f41e 100644
--- a/perl.h
+++ b/perl.h
@@ -489,6 +489,10 @@ register struct op *Perl_op asm(stringify(OP_IN_REGISTER));
# include <stdlib.h>
#endif
+#ifdef PERL_MICRO /* Last chance to export Perl_my_swap */
+# define MYSWAP
+#endif
+
#if !defined(PERL_FOR_X2P) && !defined(WIN32)
# include "embed.h"
#endif
@@ -3136,6 +3140,23 @@ typedef struct am_table_short AMTS;
# endif
#endif
+#ifdef I_FCNTL
+# include <fcntl.h>
+#else
+# ifndef O_RDONLY
+/* Assume UNIX defaults */
+# define O_RDONLY 0000
+# define O_WRONLY 0001
+# define O_RDWR 0002
+# define O_CREAT 0100
+# endif
+#endif
+
+#ifdef I_SYS_FILE
+# include <sys/file.h>
+#endif
+
+
#ifdef IAMSUID
#ifdef I_SYS_STATVFS