pmaports/temp/evtest/fix-ppc64le-musl.patch
Oliver Smith 203becec0b
temp/evtest: fork from Alpine
Add patch to fix build for armv7, armhf. That patched version is being
upstreamed to Alpine. Fork it now, so our builds are not blocked.

Related: builds.postmarketos.org#72
2020-07-29 11:39:15 +02:00

15 lines
340 B
Diff

diff --git a/evtest.c b/evtest.c
index 37d4f85..018d1ac 100644
--- a/evtest.c
+++ b/evtest.c
@@ -59,6 +59,9 @@
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
+#ifndef PATH_MAX
+#include <sys/limits.h> /* for PATH_MAX */
+#endif
#define BITS_PER_LONG (sizeof(long) * 8)
#define NBITS(x) ((((x)-1)/BITS_PER_LONG)+1)