[PATCH] network_ipc: add missingl sys/types.h include

12 views
Skip to first unread message

Dominique Martinet

unread,
May 21, 2026, 1:14:44 AMMay 21
to swup...@googlegroups.com, Dominique Martinet
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


Stefano Babic

unread,
May 26, 2026, 8:52:10 AM (10 days ago) May 26
to Dominique Martinet, swup...@googlegroups.com
Applied to -master, thanks !

Best regards,
Stefano Babic

--
_______________________________________________________________________
Nabla Software Engineering GmbH
Hirschstr. 111A | 86156 Augsburg | Tel: +49 821 45592596
Geschäftsführer : Stefano Babic | HRB 40522 Augsburg
E-Mail: sba...@nabladev.com

Reply all
Reply to author
Forward
0 new messages