diff options
author | Joel Sherrill <joel@rtems.org> | 2021-08-27 08:39:31 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2021-08-27 11:41:56 -0500 |
commit | dcb515a95369508b7ca769e3c011e65ef14c80dc (patch) | |
tree | 666b7cd71d050d26e0abdf9b7c0fe04041eaeb3b /newlib | |
parent | 801120c1f402f9b0f72b5a231bf9e1cf82614cac (diff) | |
download | newlib-dcb515a95369508b7ca769e3c011e65ef14c80dc.zip newlib-dcb515a95369508b7ca769e3c011e65ef14c80dc.tar.gz newlib-dcb515a95369508b7ca769e3c011e65ef14c80dc.tar.bz2 |
libc/include/sys/signal.h: Change __STDINT_EXP() to __SIZEOF_INT__
__STDINT_EXP() is provided by newlib but not by stdint-gcc.h. stdint-gcc.h
is used when the GCC argument -ffreestanding is used and this results in this
file not compiling.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/libc/include/sys/signal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/include/sys/signal.h b/newlib/libc/include/sys/signal.h index 255782e..4bd841b 100644 --- a/newlib/libc/include/sys/signal.h +++ b/newlib/libc/include/sys/signal.h @@ -244,7 +244,7 @@ int sigqueue (pid_t, int, const union sigval); /* POSIX Issue 8 adds sig2str() and str2sig() */ -#if __STDINT_EXP(INT_MAX) > 0x7fff +#if __SIZEOF_INT__ >= 4 #define SIG2STR_MAX (sizeof("RTMAX+") + sizeof("4294967295") - 1) #else #define SIG2STR_MAX (sizeof("RTMAX+") + sizeof("65535") - 1) |