Commit 370d4f41 authored by Leo's avatar Leo

community/evtest: fix build on ppc64le

parent 886cd3a2
......@@ -9,7 +9,9 @@ url="https://cgit.freedesktop.org/evtest/"
arch="all"
license="GPL-2.0"
makedepends="linux-headers autoconf automake libtool"
source="https://src.fedoraproject.org/repo/pkgs/evtest/evtest-$pkgver.tar.bz2/sha512/94f9ff2642abbd0393d7583edd10f83487a1985963bf3186a0c957bf1d56cef30501bb38ac4df0312eab59f633a606e25638a09e43dc6f3bc31f49aa3c7cec52/evtest-$pkgver.tar.bz2"
source="https://src.fedoraproject.org/repo/pkgs/evtest/evtest-$pkgver.tar.bz2/sha512/94f9ff2642abbd0393d7583edd10f83487a1985963bf3186a0c957bf1d56cef30501bb38ac4df0312eab59f633a606e25638a09e43dc6f3bc31f49aa3c7cec52/evtest-$pkgver.tar.bz2
fix-ppc64le-musl.patch
"
prepare() {
default_prepare
......@@ -28,4 +30,5 @@ package() {
make install DESTDIR="$pkgdir"
}
sha512sums="94f9ff2642abbd0393d7583edd10f83487a1985963bf3186a0c957bf1d56cef30501bb38ac4df0312eab59f633a606e25638a09e43dc6f3bc31f49aa3c7cec52 evtest-1.34.tar.bz2"
sha512sums="94f9ff2642abbd0393d7583edd10f83487a1985963bf3186a0c957bf1d56cef30501bb38ac4df0312eab59f633a606e25638a09e43dc6f3bc31f49aa3c7cec52 evtest-1.34.tar.bz2
d436fc203af62d8463c60517dd9d75a866af62db5d074569621d421dd343d2acbf880735fec8cd3d3f2e8f3f97c25c2c8738d31448d78ffb275930ec299ba0a5 fix-ppc64le-musl.patch"
diff --git a/evtest.c b/evtest.c
index 37d4f85..018d1ac 100644
--- a/evtest.c
+++ b/evtest.c
@@ -59,6 +59,7 @@
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
+#include <sys/limits.h> /* for PATH_MAX */
#define BITS_PER_LONG (sizeof(long) * 8)
#define NBITS(x) ((((x)-1)/BITS_PER_LONG)+1)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment