diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index cfd68e93fbb2..23e567cb8bd7 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -542,7 +542,7 @@ * using these but GCC-compatible compilers tend to support the extensions * well enough to use them in limited cases. */ -#if __GNUC_PREREQ__(4, 1) +#if defined(__GNUC_GNU_INLINE__) || defined(__GNUC_STDC_INLINE__) #if __has_attribute(artificial) || __GNUC_PREREQ__(4, 3) #define __gnu_inline __attribute__((__gnu_inline__, __artificial__)) #else