1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

devel/valgrind: temporary build fix for FreeBSD 15.

Reviewed by:	tcberner
Differential Revision:	https://reviews.freebsd.org/D41610
This commit is contained in:
Dag-Erling Smørgrav 2023-08-28 17:04:59 +02:00
parent 66979e79f3
commit 6eed0ced5a

View File

@ -0,0 +1,27 @@
--- configure.ac.orig 2023-04-28 15:28:21 UTC
+++ 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`
@@ -451,9 +453,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