The devlink tool makes use of the sigaction function and structure, but
does not include the signal.h header. This causes builds with musl libc
to fail. According to the Open Group specification this header should
be included for the sigaction function and structure definition.

Fixes: c4dfddccef4e ("fix JSON output of mon command")
Signed-off-by: Dan Robertson <[email protected]>
---
 devlink/devlink.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/devlink/devlink.c b/devlink/devlink.c
index 507972c3..01533e2a 100644
--- a/devlink/devlink.c
+++ b/devlink/devlink.c
@@ -26,6 +26,7 @@
 #include <libmnl/libmnl.h>
 #include <netinet/ether.h>
 #include <sys/types.h>
+#include <signal.h>
 
 #include "SNAPSHOT.h"
 #include "list.h"

Reply via email to