diff options
author | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-08-20 18:52:00 +0000 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-08-20 18:52:00 +0000 |
commit | c37b72b6f14cab1a516834564f7bf2fba1a6fd0c (patch) | |
tree | 24b5f8bbdb9415a57535af9c50a99ced12addd1e /community/evtest/fix-ppc64le-musl.patch | |
parent | 1b3fceef67be933ff313e0749bdf33b00e00df9e (diff) | |
download | aports-c37b72b6f14cab1a516834564f7bf2fba1a6fd0c.tar.bz2 aports-c37b72b6f14cab1a516834564f7bf2fba1a6fd0c.tar.xz |
community/evtest: fix patch for ppc64le
The patch unconditionally includes sys/limits.h to make PATH_MAX
available. This header does not exist on most arches, so only include it
if PATH_MAX is missing.
Diffstat (limited to 'community/evtest/fix-ppc64le-musl.patch')
-rw-r--r-- | community/evtest/fix-ppc64le-musl.patch | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/community/evtest/fix-ppc64le-musl.patch b/community/evtest/fix-ppc64le-musl.patch index c551fa4484..74216fc96b 100644 --- a/community/evtest/fix-ppc64le-musl.patch +++ b/community/evtest/fix-ppc64le-musl.patch @@ -2,11 +2,13 @@ diff --git a/evtest.c b/evtest.c index 37d4f85..018d1ac 100644 --- a/evtest.c +++ b/evtest.c -@@ -59,6 +59,7 @@ +@@ -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) |