]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme-rpmb: Add limits.h due to missing PATH_MAX definition
authorAriadne Conill <ariadne@dereferenced.org>
Mon, 26 Apr 2021 06:41:20 +0000 (00:41 -0600)
committerDaniel Wagner <dwagner@suse.de>
Mon, 18 Oct 2021 12:53:07 +0000 (14:53 +0200)
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 <ariadne@dereferenced.org>
[dwagner: removed nvme-topology.c bits]
Signed-off-by: Daniel Wagner <dwagner@suse.de>
nvme-rpmb.c

index 77a99f485434e199034e96010c3e52da465399c8..5ad99258558a544a9b34b4698cde2cf308c8f71c 100644 (file)
@@ -25,6 +25,7 @@
 #include <sys/socket.h>
 #include <linux/if_alg.h>
 #include <linux/socket.h>
+#include <limits.h>
 
 #include "nvme.h"
 #include "libnvme.h"