From b03c6b060658f5fed4a2ad8511095c5f4df6e9f4 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Thu, 31 May 2018 22:17:15 -0400 Subject: [PATCH] llvm: remove __FreeBSD_version conditionals All supported FreeBSD build host versions have backtrace.h, so we can just eliminate that test. For futimes() we can test the compiler's built-in __FreeBSD__ major version rather than relying on including osreldate.h. This should reduce the frequency with which Clang gets rebuilt when building world. Sponsored by: The FreeBSD Foundation --- lib/clang/include/llvm/Config/config.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/clang/include/llvm/Config/config.h b/lib/clang/include/llvm/Config/config.h index 74fd4f9f9f0f3f..5668e669224374 100644 --- a/lib/clang/include/llvm/Config/config.h +++ b/lib/clang/include/llvm/Config/config.h @@ -2,9 +2,6 @@ #ifndef CONFIG_H #define CONFIG_H -/* Get __FreeBSD_version. */ -#include - /* Exported configuration */ #include "llvm/Config/llvm-config.h" @@ -17,12 +14,10 @@ /* Define to 1 to enable crash overrides, and to 0 otherwise. */ #define ENABLE_CRASH_OVERRIDES 1 -#if __FreeBSD_version >= 1000052 /* Define to 1 if you have the `backtrace' function. */ #define HAVE_BACKTRACE TRUE #define BACKTRACE_HEADER -#endif /* Define to 1 if you have the header file. */ /* #undef HAVE_CRASHREPORTERCLIENT_H */ @@ -81,7 +76,7 @@ /* #undef HAVE_FFI_H */ /* Define to 1 if you have the `futimens' function. */ -#if __FreeBSD_version >= 1100056 +#if __FreeBSD__ >= 11 #define HAVE_FUTIMENS 1 #endif