diff options
-rw-r--r-- | doio.c | 5 | ||||
-rw-r--r-- | malloc.c | 12 | ||||
-rw-r--r-- | mg.c | 5 | ||||
-rw-r--r-- | perl.h | 6 | ||||
-rw-r--r-- | pp.c | 4 | ||||
-rw-r--r-- | pp_hot.c | 4 | ||||
-rw-r--r-- | pp_sys.c | 5 | ||||
-rw-r--r-- | toke.c | 6 | ||||
-rw-r--r-- | util.c | 5 |
9 files changed, 8 insertions, 44 deletions
@@ -51,11 +51,6 @@ #include <signal.h> #endif -/* XXX If this causes problems, set i_unistd=undef in the hint file. */ -#ifdef I_UNISTD -# include <unistd.h> -#endif - #ifdef SOCKS_64BIT_BUG typedef struct __s64_iobuffer { struct __s64_iobuffer *next, *last; /* Queue pointer */ @@ -886,18 +886,12 @@ static union overhead *nextf[NBUCKETS]; #endif #ifdef USE_PERL_SBRK -#define sbrk(a) Perl_sbrk(a) +# define sbrk(a) Perl_sbrk(a) Malloc_t Perl_sbrk (int size); -#else -#ifdef DONT_DECLARE_STD -#ifdef I_UNISTD -#include <unistd.h> -#endif #else -#ifndef HAS_SBRK_PROTO +# ifndef HAS_SBRK_PROTO /* <unistd.h> usually takes care of this */ extern Malloc_t sbrk(int); -#endif -#endif +# endif #endif #ifdef DEBUGGING_MSTATS @@ -16,11 +16,6 @@ #define PERL_IN_MG_C #include "perl.h" -/* XXX If this causes problems, set i_unistd=undef in the hint file. */ -#ifdef I_UNISTD -# include <unistd.h> -#endif - #if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS) # ifndef NGROUPS # define NGROUPS 32 @@ -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 @@ -82,10 +82,6 @@ static double UV_MAX_cxux = ((double)UV_MAX); /* variations on pp_null */ -#ifdef I_UNISTD -#include <unistd.h> -#endif - /* XXX I can't imagine anyone who doesn't have this actually _needs_ it, since pid_t is an integral type. --AD 2/20/1998 @@ -19,10 +19,6 @@ #define PERL_IN_PP_HOT_C #include "perl.h" -#ifdef I_UNISTD -#include <unistd.h> -#endif - /* Hot code. */ #ifdef USE_THREADS @@ -35,11 +35,6 @@ # include <shadow.h> #endif -/* XXX If this causes problems, set i_unistd=undef in the hint file. */ -#ifdef I_UNISTD -# include <unistd.h> -#endif - #ifdef HAS_SYSCALL #ifdef __cplusplus extern "C" int syscall(unsigned long,...); @@ -69,12 +69,6 @@ static I32 utf16rev_textfilter(pTHXo_ int idx, SV *sv, int maxlen); #define LEX_FORMLINE 1 #define LEX_KNOWNEXT 0 -/* XXX If this causes problems, set i_unistd=undef in the hint file. */ -#ifdef I_UNISTD -# include <unistd.h> /* Needed for execv() */ -#endif - - #ifdef ff_next #undef ff_next #endif @@ -26,11 +26,6 @@ #endif #endif -/* XXX If this causes problems, set i_unistd=undef in the hint file. */ -#ifdef I_UNISTD -# include <unistd.h> -#endif - #ifdef I_VFORK # include <vfork.h> #endif |