From ae4e70d97d46c58a99782ff007df1cdc34ac1219 Mon Sep 17 00:00:00 2001 From: Paul Floyd Date: Sat, 2 Sep 2023 15:20:36 +0200 Subject: [PATCH] FreeBSD: Add support for building on FreeBSD 15.0 --- NEWS | 2 ++ configure.ac | 11 +++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 832d24e45a..41f6d8699a 100644 --- a/NEWS +++ b/NEWS @@ -20,6 +20,8 @@ AMD64/macOS 10.13 and nanoMIPS/Linux. * ================== PLATFORM CHANGES ================= +* support has been added for FreeBSD 14 and FreeBSD 15. + * ==================== TOOL CHANGES =================== diff --git a/configure.ac b/configure.ac index e9592f47ec..2aaf3f44bb 100755 --- a/configure.ac +++ b/configure.ac @@ -398,6 +398,8 @@ case "${host_os}" in freebsd_13_2=1320 AC_DEFINE([FREEBSD_14], 1400, [FREEBSD_VERS value for FreeBSD 14.x]) freebsd_14=1400 + AC_DEFINE([FREEBSD_15], 1500, [FREEBSD_VERS value for FreeBSD 15.x]) + freebsd_15=1500 AC_MSG_CHECKING([for the kernel version]) kernel=`uname -r` @@ -446,7 +448,7 @@ case "${host_os}" in ;; *) AC_MSG_RESULT([unsupported (${kernel})]) - AC_MSG_ERROR([Valgrind works on FreeBSD 10.x to 14.x]) + AC_MSG_ERROR([Valgrind works on FreeBSD 10.x to 15.x]) ;; esac ;; @@ -455,9 +457,14 @@ case "${host_os}" in AC_DEFINE([FREEBSD_VERS], FREEBSD_14, [FreeBSD version]) freebsd_vers=$freebsd_14 ;; + 15.*) + AC_MSG_RESULT([FreeBSD 15.x (${kernel})]) + AC_DEFINE([FREEBSD_VERS], FREEBSD_15, [FreeBSD version]) + freebsd_vers=$freebsd_15 + ;; *) AC_MSG_RESULT([unsupported (${kernel})]) - AC_MSG_ERROR([Valgrind works on FreeBSD 10.x to 14.x]) + AC_MSG_ERROR([Valgrind works on FreeBSD 10.x to 15.x]) ;; esac -- 2.47.2