// This is cribbed from __config; but lives here as well because we can't assume libc++
#if __ISO_C_VISIBLE >= 2011 || TEST_STD_VER >= 11
# if defined(__FreeBSD__)
-// Specifically, FreeBSD does NOT have timespec_get, even though they have all
-// the rest of C11 - this is PR#38495
+# if __FreeBSD_version >= 1300064 || \
+ (__FreeBSD_version >= 1201504 && __FreeBSD_version < 1300000)
+# define TEST_HAS_TIMESPEC_GET
+# endif
# define TEST_HAS_ALIGNED_ALLOC
# define TEST_HAS_QUICK_EXIT
# elif defined(__BIONIC__)