diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-01-04 01:27:12 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-01-04 01:27:12 +0000 |
commit | 3517852e3b8a68d1e997770fc0650c5053bafc6c (patch) | |
tree | 44068672445b1418489aed82de58df3c470289e7 /app-misc/evtest/files/evtest-1.34-musl-include.patch | |
parent | 0f15659d48c193027158492acb726297501202c5 (diff) |
gentoo resync : 04.01.2022
Diffstat (limited to 'app-misc/evtest/files/evtest-1.34-musl-include.patch')
-rw-r--r-- | app-misc/evtest/files/evtest-1.34-musl-include.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/app-misc/evtest/files/evtest-1.34-musl-include.patch b/app-misc/evtest/files/evtest-1.34-musl-include.patch new file mode 100644 index 000000000000..7bf7f044c684 --- /dev/null +++ b/app-misc/evtest/files/evtest-1.34-musl-include.patch @@ -0,0 +1,26 @@ +https://bugs.gentoo.org/716876 +https://cgit.freedesktop.org/evtest/commit/?id=049396aab18849eef257af1116951a83416339e6 + +From: Mateusz Piotrowski <0mp@FreeBSD.org> +Date: Fri, 13 Nov 2020 13:41:41 +0100 +Subject: Remove PATH_MAX + +This makes evtest more portable. We could try to use ifdefs to include +sys/syslimits.h on FreeBSD to get PATH_MAX but it feels to be an +overkill for evtest. Let's keep it simple as just replace PATH_MAX with +4096. + +NB: it's fine to leave linux/input.h there, because this header is +actually available on FreeBSD via the devel/evdev-proto port. +--- a/evtest.c ++++ b/evtest.c +@@ -888,7 +888,7 @@ static char* scan_devices(void) + + for (i = 0; i < ndev; i++) + { +- char fname[PATH_MAX]; ++ char fname[4096]; + int fd = -1; + char name[256] = "???"; + +cgit v1.2.1 |