summaryrefslogtreecommitdiffstats
path: root/lib/clang/include/llvm/Config
diff options
context:
space:
mode:
Diffstat (limited to 'lib/clang/include/llvm/Config')
-rw-r--r--lib/clang/include/llvm/Config/config.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/clang/include/llvm/Config/config.h b/lib/clang/include/llvm/Config/config.h
index e9dd43c..b7462f5 100644
--- a/lib/clang/include/llvm/Config/config.h
+++ b/lib/clang/include/llvm/Config/config.h
@@ -5,6 +5,9 @@
#ifndef CONFIG_H
#define CONFIG_H
+/* Get __FreeBSD_version. */
+#include <osreldate.h>
+
/* Bug report URL. */
#define BUG_REPORT_URL "http://llvm.org/bugs/"
@@ -248,7 +251,9 @@
#define HAVE_LOG10 1
/* Define to 1 if you have the `log2' function. */
+#if __FreeBSD_version >= 900027 || (__FreeBSD_version < 900000 && __FreeBSD_version >= 802502)
#define HAVE_LOG2 1
+#endif
/* Define to 1 if you have the `longjmp' function. */
#define HAVE_LONGJMP 1
OpenPOWER on IntegriCloud