From 38d1ac34ff82bd2aeb308b52a65b686060e52873 Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Sat, 12 Nov 2011 20:16:06 +0000 Subject: [PATCH] Fix SIGATOMIC_M{IN,AX} on x86-64. These are meant to be the minimum values that are allowed in a sig_atomic_t, but it looks like they were just copied from the x86 versions, so these definitions violate the C and C++ specs. Mismatch was spotted by the libc++ test suite. Approved by: dim (mentor) --- sys/amd64/include/_stdint.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/amd64/include/_stdint.h b/sys/amd64/include/_stdint.h index ee4e592d4f6c..d755bb3ecaf8 100644 --- a/sys/amd64/include/_stdint.h +++ b/sys/amd64/include/_stdint.h @@ -150,8 +150,8 @@ #define PTRDIFF_MAX INT64_MAX /* Limits of sig_atomic_t. */ -#define SIG_ATOMIC_MIN INT32_MIN -#define SIG_ATOMIC_MAX INT32_MAX +#define SIG_ATOMIC_MIN LONG_MIN +#define SIG_ATOMIC_MAX LONG_MAX /* Limit of size_t. */ #define SIZE_MAX UINT64_MAX