]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Helgrind FreeBSD: make previous hack conditonal on version
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 3 Nov 2024 19:00:33 +0000 (20:00 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 3 Nov 2024 19:00:33 +0000 (20:00 +0100)
Don't want to ignore any pthread_mutex_lock calls on FreeBSD
14.1 and earlier.

helgrind/hg_intercepts.c

index 2e63dad87a3e9028206909c25b974bac17ea9256..ba16e33f9befd0ff9fcf473db714374a0ffb8bca 100644 (file)
 #define LIBC_FUNC(ret_ty, f, args...) \
    ret_ty I_WRAP_SONAME_FNNAME_ZZ(VG_Z_LIBC_SONAME,f)(args); \
    ret_ty I_WRAP_SONAME_FNNAME_ZZ(VG_Z_LIBC_SONAME,f)(args)
+
+#include <osreldate.h>
 #endif
 
 // Do a client request.  These are macros rather than a functions so
@@ -944,7 +946,9 @@ static int exit_WRK(int status)
    OrigFn fn;
    VALGRIND_GET_ORIG_FN(fn);
 
+#if (__FreeBSD_version >= 1401500)
    hg_in_exit = 1;
+#endif
 
    CALL_FN_W_W(ret, fn, status);