swupdate itself builds fine, but tests fail to build on alpine (musl
libc):
In file included from test/test_network_ipc_if.c:13:
include/network_ipc.h:145:36: error: unknown type name 'ssize_t'; did you mean 'size_t'?
145 | int ipc_inst_start_ext(void *priv, ssize_t size);
| ^~~~~~~
| size_t
include/network_ipc.h:163:45: error: unknown type name 'ssize_t'; did you mean 'size_t'?
163 | void *priv, ssize_t size);
| ^~~~~~~
| size_t
ssize_t is defined in sys/types.h according to the man page, so add the
missing include.
Fixes: 4b3da83b2069 ("IPC: simplify API using a single structure")
Signed-off-by: Dominique Martinet <
dominique...@atmark-techno.com>
---
include/network_ipc.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/network_ipc.h b/include/network_ipc.h
index 813ffce0096d..1ba47a1fd21d 100644
--- a/include/network_ipc.h
+++ b/include/network_ipc.h
@@ -10,6 +10,7 @@
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
+#include <sys/types.h>
#include "swupdate_status.h"
#ifdef __cplusplus
--
2.47.3