From dbeec268b7a37f4d864c007eccdab7a2b477cfa5 Mon Sep 17 00:00:00 2001 From: Merry Date: Sun, 29 Oct 2023 15:41:12 +0000 Subject: [PATCH] oaknut: feature_detection_freebsd: Warn about incompatibility with earlier FreeBSD versions --- .../oaknut/feature_detection/feature_detection_freebsd.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/oaknut/feature_detection/feature_detection_freebsd.hpp b/include/oaknut/feature_detection/feature_detection_freebsd.hpp index 714408e..efb3c66 100644 --- a/include/oaknut/feature_detection/feature_detection_freebsd.hpp +++ b/include/oaknut/feature_detection/feature_detection_freebsd.hpp @@ -7,6 +7,7 @@ #include #include +#include #include "oaknut/feature_detection/cpu_feature.hpp" #include "oaknut/feature_detection/feature_detection_hwcaps.hpp" @@ -20,6 +21,10 @@ # define AT_HWCAP2 26 #endif +#if __FreeBSD_version < 1300114 +# error "Incompatible ABI change (incorrect HWCAP definitions on earlier FreeBSD versions)" +#endif + namespace oaknut { namespace detail {