From 0f19d0f12fa235c6951ff431bd60da594356a1a6 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 31 Aug 2015 01:36:46 -0400 Subject: Remove long-dead support for platforms without sig_atomic_t. C89 requires to define sig_atomic_t, and there is no evidence in the buildfarm that any supported platforms don't comply. Remove the configure test to stop wasting build cycles on a purely historical issue. (Once upon a time, we cared about supporting C89-compliant compilers on machines with pre-C89 system headers, but that use-case has been dead for quite a few years.) I have some other fixes planned in this area, but let's start with this to see if the buildfarm produces any surprising results. --- src/include/c.h | 5 ----- src/include/pg_config.h.in | 3 --- src/include/pg_config.h.win32 | 3 --- 3 files changed, 11 deletions(-) (limited to 'src') diff --git a/src/include/c.h b/src/include/c.h index b719eb95e14..f5da4676c6f 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -334,11 +334,6 @@ typedef unsigned PG_INT128_TYPE uint128; #define HAVE_INT64_TIMESTAMP #endif -/* sig_atomic_t is required by ANSI C, but may be missing on old platforms */ -#ifndef HAVE_SIG_ATOMIC_T -typedef int sig_atomic_t; -#endif - /* * Size * Size of any memory resident object, as returned by sizeof. diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in index 8873dccd1e2..1dcc9a9ee7a 100644 --- a/src/include/pg_config.h.in +++ b/src/include/pg_config.h.in @@ -449,9 +449,6 @@ /* Define to 1 if you have sigsetjmp(). */ #undef HAVE_SIGSETJMP -/* Define to 1 if the system has the type `sig_atomic_t'. */ -#undef HAVE_SIG_ATOMIC_T - /* Define to 1 if you have the `snprintf' function. */ #undef HAVE_SNPRINTF diff --git a/src/include/pg_config.h.win32 b/src/include/pg_config.h.win32 index ad61392841e..bf69ef5bdeb 100644 --- a/src/include/pg_config.h.win32 +++ b/src/include/pg_config.h.win32 @@ -322,9 +322,6 @@ /* Define to 1 if you have sigsetjmp(). */ /* #undef HAVE_SIGSETJMP */ -/* Define to 1 if the system has the type `sig_atomic_t'. */ -#define HAVE_SIG_ATOMIC_T 1 - /* Define to 1 if you have the `snprintf' function. */ /* #undef HAVE_SNPRINTF */ -- cgit v1.2.3