maint: remove now-useless #if HAVE_HEADER_H guards

* src/system.h: Include <sys/wait.h> unconditionally,
now that gnulib guarantees its presence.
* lib/cmpbuf.c: Likewise for <unistd.h> and <inttypes.h>.
This commit is contained in:
Jim Meyering 2010-04-30 18:56:03 +02:00
parent 59669066e7
commit 7ea9bf381b
2 changed files with 3 additions and 11 deletions

View File

@ -30,14 +30,8 @@
# endif
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#include <unistd.h>
#include <inttypes.h>
#include <sys/types.h>
#include "cmpbuf.h"
#include "intprops.h"

View File

@ -53,9 +53,7 @@
#include <fcntl.h>
#include <time.h>
#if HAVE_SYS_WAIT_H
# include <sys/wait.h>
#endif
#include <sys/wait.h>
#ifndef WEXITSTATUS
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
#endif