util: remove the dependency on kcmp.h

Fixes: f76cbc7901 "util: Add os_same_file_description helper"

Acked-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3860>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3860>
This commit is contained in:
Marek Olšák 2020-02-18 16:12:23 -05:00 committed by Marge Bot
parent 273b8cd1ca
commit f7bfb10c69

View file

@ -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)