Dominique Martinet
unread,Jan 6, 2025, 9:20:27 PMJan 6Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to stefan...@swupdate.org, swup...@googlegroups.com, AFIQE ANUAR, Dominique Martinet
From: AFIQE ANUAR <
afiqe...@atmark-techno.com>
musl requires unistd.h to be included for close() as specified by POSIX.
This always printed a warning and has become and error since gcc 14:
ipc/network_ipc-if.c: In function 'inst_wait_for_complete':
ipc/network_ipc-if.c:74:17: error: implicit declaration of function 'close'; did you mean 'clone'? [-Wimplicit-function-declaration]
74 | close(*progressfd);
| ^~~~~
| clone
Signed-off-by: AFIQE ANUAR <
afiqe...@atmark-techno.com>
Signed-off-by: Dominique Martinet <
dominique...@atmark-techno.com>
---
(Noticed this when upgrading to alpine 3.21 which includes gcc 14)
ipc/network_ipc-if.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/ipc/network_ipc-if.c b/ipc/network_ipc-if.c
index 51a99357dd20..7740d1dcc17d 100644
--- a/ipc/network_ipc-if.c
+++ b/ipc/network_ipc-if.c
@@ -12,6 +12,7 @@
#include <signal.h>
#include <pthread.h>
#include <inttypes.h>
+#include <unistd.h>
#include "network_ipc.h"
#include "progress_ipc.h"
--
2.39.5