mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 11:20:20 +01:00
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:
parent
273b8cd1ca
commit
f7bfb10c69
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue