Use real sched_getcpu() implementation on FreeBSD 14.

This commit is contained in:
Gleb Popov 2021-12-24 21:24:25 +03:00
parent f434876a5c
commit f70dd7fa0c

View file

@ -12,8 +12,11 @@
#define MAX_VALUE 0x10000
#ifdef __FreeBSD__
#include <sys/param.h>
#if __FreeBSD_version < 1400043
static int sched_getcpu(void) { return -1; };
#endif
#endif
static struct spa_ringbuffer rb;
static uint32_t size;