https://github.com/linux-nvme/nvme-cli/commit/4729b13f36d4713ce1162dc1d4425d44e1474078.patch https://bugs.gentoo.org/829705 (and an additional hunk for https://bugs.gentoo.org/830744) From: Ariadne Conill Date: Mon, 26 Apr 2021 00:41:20 -0600 Subject: [PATCH] nvme-rpmb: Add limits.h due to missing PATH_MAX definition Commit 21f40f38b introduced new use of PATH_MAX, but did not add the limits.h header. This resulted in nvme-cli failing to build on ppc64le systems using the musl C library. Signed-off-by: Ariadne Conill [dwagner: removed nvme-topology.c bits] Signed-off-by: Daniel Wagner --- a/nvme-rpmb.c +++ b/nvme-rpmb.c @@ -25,6 +25,7 @@ #include #include #include +#include #include "nvme.h" #include "libnvme.h" diff --git a/nvme-topology.c b/nvme-topology.c index 0a22f6b..6d510f2 100644 --- a/nvme-topology.c +++ b/nvme-topology.c @@ -1,6 +1,7 @@ #include #include #include +#include #include #include #include