diff mbox series

[1/1] devlink: fix build with musl libc

Message ID 20200608140404.1449-2-dan@dlrobertson.com
State New
Headers show
Series [1/1] devlink: fix build with musl libc | expand

Commit Message

Dan Robertson June 8, 2020, 2:04 p.m. UTC
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 <dan@dlrobertson.com>
---
 devlink/devlink.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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"