From: Jarkko Hietaniemi Date: Wed, 22 Nov 2000 21:38:25 +0000 (+0000) Subject: Go ahead and #include in perl.h. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3f270f98f93055407790f4fc65bd60980f2723b2;p=p5sagit%2Fp5-mst-13.2.git Go ahead and #include in perl.h. p4raw-id: //depot/perl@7816 --- diff --git a/doio.c b/doio.c index 1fdedc2..bd4d353 100644 --- a/doio.c +++ b/doio.c @@ -51,11 +51,6 @@ #include #endif -/* XXX If this causes problems, set i_unistd=undef in the hint file. */ -#ifdef I_UNISTD -# include -#endif - #ifdef SOCKS_64BIT_BUG typedef struct __s64_iobuffer { struct __s64_iobuffer *next, *last; /* Queue pointer */ diff --git a/malloc.c b/malloc.c index 42c2d65..0f668cd 100644 --- a/malloc.c +++ b/malloc.c @@ -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 -#endif #else -#ifndef HAS_SBRK_PROTO +# ifndef HAS_SBRK_PROTO /* usually takes care of this */ extern Malloc_t sbrk(int); -#endif -#endif +# endif #endif #ifdef DEBUGGING_MSTATS diff --git a/mg.c b/mg.c index 867cf38..660fa54 100644 --- a/mg.c +++ b/mg.c @@ -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 -#endif - #if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS) # ifndef NGROUPS # define NGROUPS 32 diff --git a/perl.h b/perl.h index 9418b52..de6185b 100644 --- a/perl.h +++ b/perl.h @@ -496,12 +496,16 @@ register struct op *Perl_op asm(stringify(OP_IN_REGISTER)); # include #endif - /* Use all the "standard" definitions? */ #if defined(STANDARD_C) && defined(I_STDLIB) # include #endif +/* If this causes problems, set i_unistd=undef in the hint file. */ +#ifdef I_UNISTD +# include +#endif + #ifdef PERL_MICRO /* Last chance to export Perl_my_swap */ # define MYSWAP #endif diff --git a/pp.c b/pp.c index 59c67e9..17beb6c 100644 --- a/pp.c +++ b/pp.c @@ -82,10 +82,6 @@ static double UV_MAX_cxux = ((double)UV_MAX); /* variations on pp_null */ -#ifdef I_UNISTD -#include -#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 diff --git a/pp_hot.c b/pp_hot.c index b0d53bc..7b5f832 100644 --- a/pp_hot.c +++ b/pp_hot.c @@ -19,10 +19,6 @@ #define PERL_IN_PP_HOT_C #include "perl.h" -#ifdef I_UNISTD -#include -#endif - /* Hot code. */ #ifdef USE_THREADS diff --git a/pp_sys.c b/pp_sys.c index 9e6d065..12c368d 100644 --- a/pp_sys.c +++ b/pp_sys.c @@ -35,11 +35,6 @@ # include #endif -/* XXX If this causes problems, set i_unistd=undef in the hint file. */ -#ifdef I_UNISTD -# include -#endif - #ifdef HAS_SYSCALL #ifdef __cplusplus extern "C" int syscall(unsigned long,...); diff --git a/toke.c b/toke.c index b48577e..6cb8e16 100644 --- a/toke.c +++ b/toke.c @@ -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 /* Needed for execv() */ -#endif - - #ifdef ff_next #undef ff_next #endif diff --git a/util.c b/util.c index 02d0ed5..d9ea421 100644 --- a/util.c +++ b/util.c @@ -26,11 +26,6 @@ #endif #endif -/* XXX If this causes problems, set i_unistd=undef in the hint file. */ -#ifdef I_UNISTD -# include -#endif - #ifdef I_VFORK # include #endif