From bec2cfcd8f73c81219a0f348718b01766e274621 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 9 May 2010 18:39:39 +0200 Subject: [PATCH] build: don't define macros that gnulib provides * bootstrap.conf (gnulib_modules): Add signal, stdint. * lib/cmpbuf.c (SA_RESTART, SA_INTERRUPT): Remove definitions. (SIZE_MAX, PTRDIFF_MAX): Likewise. Include . * src/system.h (WEXITSTATUS, WIFEXITED): Remove definitions. (SA_RESTART, SA_INTERRUPT): Likewise. --- bootstrap.conf | 2 ++ lib/cmpbuf.c | 16 +--------------- src/system.h | 13 ------------- 3 files changed, 3 insertions(+), 28 deletions(-) diff --git a/bootstrap.conf b/bootstrap.conf index aa1e8c3..2f104b3 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -55,9 +55,11 @@ progname propername regex sh-quote +signal sigprocmask stat-macros stat-time +stdint strcase strftime strptime diff --git a/lib/cmpbuf.c b/lib/cmpbuf.c index 7413210..96ef249 100644 --- a/lib/cmpbuf.c +++ b/lib/cmpbuf.c @@ -20,28 +20,14 @@ #include #include - #include -#ifndef SA_RESTART -# ifdef SA_INTERRUPT /* e.g. SunOS 4.1.x */ -# define SA_RESTART SA_INTERRUPT -# else -# define SA_RESTART 0 -# endif -#endif - #include +#include #include #include #include "cmpbuf.h" #include "intprops.h" -#ifndef PTRDIFF_MAX -# define PTRDIFF_MAX TYPE_MAXIMUM (ptrdiff_t) -#endif -#ifndef SIZE_MAX -# define SIZE_MAX TYPE_MAXIMUM (size_t) -#endif #ifndef SSIZE_MAX # define SSIZE_MAX TYPE_MAXIMUM (ssize_t) #endif diff --git a/src/system.h b/src/system.h index 8942296..785a1e9 100644 --- a/src/system.h +++ b/src/system.h @@ -54,12 +54,6 @@ #include #include -#ifndef WEXITSTATUS -# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) -#endif -#ifndef WIFEXITED -# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) -#endif #include #ifndef _D_EXACT_NAMLEN @@ -111,13 +105,6 @@ int strcasecmp (char const *, char const *); #include #include -#ifndef SA_RESTART -# ifdef SA_INTERRUPT /* e.g. SunOS 4.1.x */ -# define SA_RESTART SA_INTERRUPT -# else -# define SA_RESTART 0 -# endif -#endif #if !defined SIGCHLD && defined SIGCLD # define SIGCHLD SIGCLD #endif