--- lib/ubsan/ubsan_platform.h.orig 2016-04-16 08:25:04.000000000 +1000 +++ lib/ubsan/ubsan_platform.h 2020-05-25 22:43:52.983203000 +1000 @@ -14,7 +14,7 @@ #define UBSAN_PLATFORM_H // Other platforms should be easy to add, and probably work as-is. -#if (defined(__linux__) || defined(__FreeBSD__) || defined(__APPLE__)) && \ +#if (defined(__linux__) || defined(__BSDSUniX__) || defined(__FreeBSD__) || defined(__APPLE__)) && \ (defined(__x86_64__) || defined(__i386__) || defined(__arm__) || \ defined(__aarch64__) || defined(__mips__) || defined(__powerpc64__) || \ defined(__s390__))