--- pypy/module/_hpy_universal/_vendored/hpy/trace/src/trace_internal.h.orig	2023-12-24 19:15:32 UTC
+++ pypy/module/_hpy_universal/_vendored/hpy/trace/src/trace_internal.h
@@ -16,6 +16,14 @@
 
 #define HPY_TRACE_MAGIC 0xF00BAA5
 
+/*
+ * FreeBSD up to version 14 has no CLOCK_MONOTONIC_RAW:
+ * alias to CLOCK_MONOTONIC
+ */
+#if !defined(CLOCK_MONOTONIC_RAW)
+#define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC
+#endif
+
 // frequency of nanosecond resolution
 #define FREQ_NSEC 1000000000L
 
