Fix build on recent FreeBSD 13-STABLE

This commit is contained in:
Gleb Popov 2022-01-26 14:32:47 +03:00
parent 44b18b86cd
commit 6c5c3dc090

View file

@ -13,7 +13,8 @@
#ifdef __FreeBSD__
#include <sys/param.h>
#if __FreeBSD_version < 1400043
#if (__FreeBSD_version >= 1400000 && __FreeBSD_version < 1400043) \
|| (__FreeBSD_version < 1300523)
static int sched_getcpu(void) { return -1; };
#endif
#endif