mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-17 19:20:30 +01:00
util: Allow kcmp on FreeBSD
FreeBSD now have kcmp(2) syscall, use it. Signed-off-by: Emmanuel Vadot <manu@FreeBSD.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27184>
This commit is contained in:
parent
3a00d80c67
commit
464e8aaff4
1 changed files with 3 additions and 1 deletions
|
|
@ -194,13 +194,15 @@ os_read_file(const char *filename, size_t *size)
|
|||
return buf;
|
||||
}
|
||||
|
||||
#if DETECT_OS_LINUX && ALLOW_KCMP
|
||||
#if (DETECT_OS_LINUX || DETECT_OS_FREEBSD) && ALLOW_KCMP
|
||||
|
||||
#include <sys/syscall.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#if DETECT_OS_LINUX
|
||||
/* copied from <linux/kcmp.h> */
|
||||
#define KCMP_FILE 0
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue