From 63ad4535df6a0a938e7391d73adcada05e730c89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 18 Feb 2020 16:12:23 -0500 Subject: [PATCH] util: remove the dependency on kcmp.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: f76cbc7901f7 "util: Add os_same_file_description helper" Acked-by: Eric Engestrom Reviewed-by: Michel Dänzer Tested-by: Marge Bot Part-of: [ Upstream: https://cgit.freedesktop.org/mesa/mesa/commit/?id=f7bfb10c69dfe48a91e35523cb5ee641bdbf6988 ] Signed-off-by: Peter Seiderer --- src/util/os_file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/os_file.c b/src/util/os_file.c index b502ff4..128fe87 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 -#include #include #include #include +/* copied from */ +#define KCMP_FILE 0 static ssize_t readN(int fd, char *buf, size_t len) -- 2.25.1