evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / xn / xnbd / 0001-Fix-build-for-glibc-2.28.patch
blob712183e56c74896b0f38e04e55b4fbb22616410c
1 From e799a7e0a64696e4ef6c088d36e4db09f8323581 Mon Sep 17 00:00:00 2001
2 From: Maximilian Bosch <maximilian@mbosch.me>
3 Date: Sun, 19 Jan 2020 22:37:04 +0100
4 Subject: [PATCH] Fix build for glibc>=2.28
6 The major/minor macros are defined in <sys/sysmacros.h> now.
7 ---
8 lib/io.h | 1 +
9 1 file changed, 1 insertion(+)
11 diff --git a/lib/io.h b/lib/io.h
12 index 8703cc8..e3d0d10 100644
13 --- a/lib/io.h
14 +++ b/lib/io.h
15 @@ -33,6 +33,7 @@
16 #include <sys/types.h>
17 #include <sys/stat.h>
18 #include <sys/mman.h>
19 +#include <sys/sysmacros.h>
22 void read_all(int fd, void *buf, size_t len);
23 --
24 2.23.1