Add a stub implementation for sched_getcpu, as this function isn't present on

FreeBSD.
This commit is contained in:
Gleb Popov 2019-11-10 01:13:22 +04:00 committed by Wim Taymans
parent da7eefd60e
commit 9ab4e39704

View file

@ -11,6 +11,10 @@
#define ARRAY_SIZE 63 #define ARRAY_SIZE 63
#define MAX_VALUE 0x10000 #define MAX_VALUE 0x10000
#ifdef __FreeBSD__
static int sched_getcpu(void) { return -1; };
#endif
static struct spa_ringbuffer rb; static struct spa_ringbuffer rb;
static uint32_t size; static uint32_t size;
static void *data; static void *data;