Skip to content
Browse files

Don't #include headers already included by perl.h

097ee67 didn't need to include <locale.h> in locale.c (then
util.c) because it had been included by perl.h since 5.002 beta 1
3f270f9 missed removing the include of <unistd.h> from perl.c
or perlio.c
de8ca8a changed perl.h to also include <sys/wait.h>, but didn't
notice that it code therefore be removed from perl.c, pp_sys.c and util.c
  • Loading branch information...
1 parent 877c86f commit 75006f0f4402bbabe02553499aa6e8b7687138fc Nicholas Clark committed
Showing with 0 additions and 27 deletions.
  1. +0 −4 locale.c
  2. +0 −8 perl.c
  3. +0 −7 perlio.c
  4. +0 −4 pp_sys.c
  5. +0 −4 util.c
View
4 locale.c
@@ -28,10 +28,6 @@
#define PERL_IN_LOCALE_C
#include "perl.h"
-#ifdef I_LOCALE
-# include <locale.h>
-#endif
-
#ifdef I_LANGINFO
# include <langinfo.h>
#endif
View
8 perl.c
@@ -38,15 +38,7 @@
#include "nwutil.h"
#endif
-/* XXX If this causes problems, set i_unistd=undef in the hint file. */
-#ifdef I_UNISTD
-#include <unistd.h>
-#endif
-
#ifdef DEBUG_LEAKING_SCALARS_FORK_DUMP
-# ifdef I_SYS_WAIT
-# include <sys/wait.h>
-# endif
# ifdef I_SYSUIO
# include <sys/uio.h>
# endif
View
7 perlio.c
@@ -451,13 +451,6 @@ PerlIO_findFILE(PerlIO *pio)
#include "perliol.h"
-/*
- * We _MUST_ have <unistd.h> if we are using lseek() and may have large
- * files
- */
-#ifdef I_UNISTD
-#include <unistd.h>
-#endif
#ifdef HAS_MMAP
#include <sys/mman.h>
#endif
View
4 pp_sys.c
@@ -49,10 +49,6 @@
# include <shadow.h>
#endif
-#ifdef I_SYS_WAIT
-# include <sys/wait.h>
-#endif
-
#ifdef I_SYS_RESOURCE
# include <sys/resource.h>
#endif
View
4 util.c
@@ -41,10 +41,6 @@
int putenv(char *);
#endif
-#ifdef I_SYS_WAIT
-# include <sys/wait.h>
-#endif
-
#ifdef HAS_SELECT
# ifdef I_SYS_SELECT
# include <sys/select.h>

0 comments on commit 75006f0

Please sign in to comment.
Something went wrong with that request. Please try again.