diff options
-rw-r--r-- | doio.c | 6 | ||||
-rw-r--r-- | perl.c | 9 | ||||
-rw-r--r-- | perl.h | 21 | ||||
-rw-r--r-- | pp_hot.c | 7 | ||||
-rw-r--r-- | pp_sys.c | 6 | ||||
-rw-r--r-- | toke.c | 7 | ||||
-rw-r--r-- | util.c | 9 |
7 files changed, 24 insertions, 41 deletions
@@ -41,12 +41,6 @@ # endif #endif -#ifdef I_FCNTL -#include <fcntl.h> -#endif -#ifdef I_SYS_FILE -#include <sys/file.h> -#endif #ifdef O_EXCL # define OPEN_EXCL O_EXCL #else @@ -27,13 +27,6 @@ char *getenv (char *); /* Usually in <stdlib.h> */ static I32 read_e_script(pTHXo_ int idx, SV *buf_sv, int maxlen); -#ifdef I_FCNTL -#include <fcntl.h> -#endif -#ifdef I_SYS_FILE -#include <sys/file.h> -#endif - #ifdef IAMSUID #ifndef DOSUID #define DOSUID @@ -1155,7 +1148,9 @@ print \" \\@INC:\\n @INC\\n\";"); CvPADLIST(PL_compcv) = comppadlist; boot_core_UNIVERSAL(); +#ifndef PERL_MICRO boot_core_xsutils(); +#endif if (xsinit) (*xsinit)(aTHXo); /* in case linked C routines want magical variables */ @@ -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 @@ -22,13 +22,6 @@ #ifdef I_UNISTD #include <unistd.h> #endif -#ifdef I_FCNTL -#include <fcntl.h> -#endif -#ifdef I_SYS_FILE -#include <sys/file.h> -#endif - /* Hot code. */ @@ -112,12 +112,6 @@ extern int h_errno; # include <utime.h> # endif #endif -#ifdef I_FCNTL -#include <fcntl.h> -#endif -#ifdef I_SYS_FILE -#include <sys/file.h> -#endif /* Put this after #includes because fork and vfork prototypes may conflict. */ #ifndef HAS_VFORK @@ -58,13 +58,6 @@ static void restore_rsfp(pTHXo_ void *f); #define LEX_FORMLINE 1 #define LEX_KNOWNEXT 0 -#ifdef I_FCNTL -#include <fcntl.h> -#endif -#ifdef I_SYS_FILE -#include <sys/file.h> -#endif - /* XXX If this causes problems, set i_unistd=undef in the hint file. */ #ifdef I_UNISTD # include <unistd.h> /* Needed for execv() */ @@ -40,13 +40,6 @@ # define vfork fork #endif -#ifdef I_FCNTL -# include <fcntl.h> -#endif -#ifdef I_SYS_FILE -# include <sys/file.h> -#endif - #ifdef I_SYS_WAIT # include <sys/wait.h> #endif @@ -116,7 +109,7 @@ Perl_safesysrealloc(Malloc_t where,MEM_SIZE size) { dTHX; Malloc_t ptr; -#if !defined(STANDARD_C) && !defined(HAS_REALLOC_PROTOTYPE) +#if !defined(STANDARD_C) && !defined(HAS_REALLOC_PROTOTYPE) && !defined(PERL_MICRO) Malloc_t PerlMem_realloc(); #endif /* !defined(STANDARD_C) && !defined(HAS_REALLOC_PROTOTYPE) */ |