mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Add configure-time check whether sig_atomic_t is defined; if not,
provide a default definition equating it to 'int'. Should trigger only on machines with pre-ANSI-C header files, eg SunOS 4.1.x.
This commit is contained in:
@@ -1171,10 +1171,12 @@ AC_DEFINE_UNQUOTED(MAXIMUM_ALIGNOF, $MAX_ALIGNOF, [Define as the maximum alignme
|
||||
|
||||
|
||||
# Some platforms predefine the types int8, int16, etc. Only check
|
||||
# a (hopefully) representative subset.
|
||||
# a (hopefully) representative subset. We also check for sig_atomic_t,
|
||||
# which *should* be defined per ANSI C, but is missing on some old platforms.
|
||||
|
||||
pgac_type_includes="\
|
||||
#include <stdio.h>
|
||||
#include <signal.h>
|
||||
#ifdef HAVE_SUPPORTDEFS_H
|
||||
#include <SupportDefs.h>
|
||||
#endif"
|
||||
@@ -1183,6 +1185,7 @@ PGAC_CHECK_TYPE(int8, [], [], [$pgac_type_includes])
|
||||
PGAC_CHECK_TYPE(uint8, [], [], [$pgac_type_includes])
|
||||
PGAC_CHECK_TYPE(int64, [], [], [$pgac_type_includes])
|
||||
PGAC_CHECK_TYPE(uint64, [], [], [$pgac_type_includes])
|
||||
PGAC_CHECK_TYPE(sig_atomic_t, [], [], [$pgac_type_includes])
|
||||
|
||||
|
||||
PGAC_FUNC_POSIX_SIGNALS
|
||||
|
Reference in New Issue
Block a user