From 58743b7488e549e16287797f57215feb49e7e454 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 29 Aug 2019 10:03:01 -0600 Subject: [PATCH] The non-standard, non-portable type cpu_set_t was created specifically to support the NuttX internal, SMP implementation. Any resemblance to any other cpu_set_t would be purely coincidental. However it appears that that coincidence has occurred. cpu_set_t is an equivalent, non-standard, non-portable type in the GNU C library. Compilation of libgnat expects this non-standard type to be defined. Who am I to standard in the way of progress? This commit removes the conditioning on CONFIG_SMP so that cpu_set_t is typed (as a uint8_t) even if CONFIG_SMP is not defined. Reference: Bitbucket issue 164. --- include/sys/types.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/sys/types.h b/include/sys/types.h index 0d9e303b79..1e403c095f 100644 --- a/include/sys/types.h +++ b/include/sys/types.h @@ -280,6 +280,8 @@ typedef volatile uint32_t cpu_set_t; #else # error SMP: Extensions needed to support this number of CPUs #endif +#else +typedef volatile uint8_t cpu_set_t; #endif /* CONFIG_SMP */ /* BSD types provided only to support porting to NuttX. */