From 9059e586d7be624619190a748a7d008044adc00a Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 27 Nov 2019 17:30:01 -0800 Subject: [PATCH] evtest: Fix compilation with musl Backported upstream patch. Signed-off-by: Rosen Penev --- utils/evtest/Makefile | 2 +- utils/evtest/patches/010-musl.patch | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 utils/evtest/patches/010-musl.patch diff --git a/utils/evtest/Makefile b/utils/evtest/Makefile index ed5e03d52d..0bd9a4754e 100644 --- a/utils/evtest/Makefile +++ b/utils/evtest/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=evtest PKG_VERSION:=1.34 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=https://cgit.freedesktop.org/evtest/snapshot diff --git a/utils/evtest/patches/010-musl.patch b/utils/evtest/patches/010-musl.patch new file mode 100644 index 0000000000..92260297c3 --- /dev/null +++ b/utils/evtest/patches/010-musl.patch @@ -0,0 +1,24 @@ +From 12d5ea5ca2d9a47a1cab06caf2b36967667a3daf Mon Sep 17 00:00:00 2001 +From: Leo +Date: Sun, 24 Nov 2019 20:58:20 +0100 +Subject: [PATCH] Add missing include of limits.h for PATH_MAX + +--- + evtest.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/evtest.c b/evtest.c +index 548c203..be5e42c 100644 +--- a/evtest.c ++++ b/evtest.c +@@ -59,6 +59,7 @@ + #include + #include + #include ++#include /* PATH_MAX */ + + #define BITS_PER_LONG (sizeof(long) * 8) + #define NBITS(x) ((((x)-1)/BITS_PER_LONG)+1) +-- +2.22.0 + -- 2.30.2