https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78267
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- extern char **environ; #endif -#if defined(__has_include) && __has_include(<os/trace.h>) +#if defined(__has_include) && __has_include(<os/trace.h>) && defined(__clang__) #define SANITIZER_OS_TRACE 1 #include <os/trace.h> #else is preapproved if it works.