diff options
author | Marek Olšák <[email protected]> | 2020-02-18 16:12:23 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-02-20 00:15:23 +0000 |
commit | f7bfb10c69dfe48a91e35523cb5ee641bdbf6988 (patch) | |
tree | 7c5a853716f2cde970f9ed4eb28b0e807f0759ed /src | |
parent | 273b8cd1ca286e2f43b4a464a391fdcaac49f077 (diff) |
util: remove the dependency on kcmp.h
Fixes: f76cbc7901f7 "util: Add os_same_file_description helper"
Acked-by: Eric Engestrom <[email protected]>
Reviewed-by: Michel Dänzer <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3860>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3860>
Diffstat (limited to 'src')
-rw-r--r-- | src/util/os_file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/os_file.c b/src/util/os_file.c index b502ff4b0ef..128fe872db1 100644 --- a/src/util/os_file.c +++ b/src/util/os_file.c @@ -34,11 +34,12 @@ os_file_create_unique(const char *filename, int filemode) #if defined(__linux__) #include <fcntl.h> -#include <linux/kcmp.h> #include <sys/stat.h> #include <sys/syscall.h> #include <unistd.h> +/* copied from <linux/kcmp.h> */ +#define KCMP_FILE 0 static ssize_t readN(int fd, char *buf, size_t len) |