All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/swupdate: fix build failure due to missing include
@ 2025-11-25 14:50 Giulio Benetti
  2026-02-03 16:16 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 3+ messages in thread
From: Giulio Benetti @ 2025-11-25 14:50 UTC (permalink / raw)
  To: buildroot; +Cc: Giulio Benetti

Add local patch upstreamed to fix build failure due to missing unistd.h
include.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
 ...001-ipc-add-missing-unistd.h-include.patch | 38 +++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 package/swupdate/0001-ipc-add-missing-unistd.h-include.patch

diff --git a/package/swupdate/0001-ipc-add-missing-unistd.h-include.patch b/package/swupdate/0001-ipc-add-missing-unistd.h-include.patch
new file mode 100644
index 0000000000..58ceab24ea
--- /dev/null
+++ b/package/swupdate/0001-ipc-add-missing-unistd.h-include.patch
@@ -0,0 +1,38 @@
+From 0a936479ef45307cb92f020bbf74808754d07784 Mon Sep 17 00:00:00 2001
+From: AFIQE ANUAR <afiqe.anuar@atmark-techno.com>
+Date: Tue, 7 Jan 2025 11:20:07 +0900
+Subject: [PATCH] ipc: add missing unistd.h include
+
+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
+
+Upstream: https://github.com/sbabic/swupdate/commit/0a936479ef45307cb92f020bbf74808754d07784
+Signed-off-by: AFIQE ANUAR <afiqe.anuar@atmark-techno.com>
+Signed-off-by: Dominique Martinet <dominique.martinet@atmark-techno.com>
+Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
+---
+ 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 51a99357..7740d1dc 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.47.3
+
-- 
2.47.3

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-02-10 16:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-25 14:50 [Buildroot] [PATCH] package/swupdate: fix build failure due to missing include Giulio Benetti
2026-02-03 16:16 ` Thomas Petazzoni via buildroot
2026-02-10 16:19   ` Giulio Benetti

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.