Don't want to ignore any pthread_mutex_lock calls on FreeBSD
14.1 and earlier.
#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
OrigFn fn;
VALGRIND_GET_ORIG_FN(fn);
+#if (__FreeBSD_version >= 1401500)
hg_in_exit = 1;
+#endif
CALL_FN_W_W(ret, fn, status);