[meta-arago][master][PATCH 2/2] open62541: Add patch for implicit declaration error

<[email protected]>
Newsgroups org.yoctoproject.lists.meta-arago
Message-ID <[email protected]>
From: Antonios Christidis <[email protected]>

Add patch for implicit declaration error for pthread_create().

Signed-off-by: Antonios Christidis <[email protected]>
---
 .../open62541/open62541-arago.inc             |  1 +
 ...plicit-declaration-of-pthread_create.patch | 30 +++++++++++++++++++
 2 files changed, 31 insertions(+)
 create mode 100644 meta-arago-extras/recipes-connectivity/open62541/open62541/0001-fix-pubsub-Implicit-declaration-of-pthread_create.patch

diff --git a/meta-arago-extras/recipes-connectivity/open62541/open62541-arago.inc b/meta-arago-extras/recipes-connectivity/open62541/open62541-arago.inc
index cd8ceb00..7bbd34b8 100644
--- a/meta-arago-extras/recipes-connectivity/open62541/open62541-arago.inc
+++ b/meta-arago-extras/recipes-connectivity/open62541/open62541-arago.inc
@@ -2,6 +2,7 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/open62541:"
 
 SRC_URI:append = " \
     file://0001-examples-client-allow-configurable-server.patch \
+    file://0001-fix-pubsub-Implicit-declaration-of-pthread_create.patch \
 "
 
 EXTRA_OECMAKE = "-DUA_BUILD_EXAMPLES=1"
diff --git a/meta-arago-extras/recipes-connectivity/open62541/open62541/0001-fix-pubsub-Implicit-declaration-of-pthread_create.patch b/meta-arago-extras/recipes-connectivity/open62541/open62541/0001-fix-pubsub-Implicit-declaration-of-pthread_create.patch
new file mode 100644
index 00000000..0b1db3e4
--- /dev/null
+++ b/meta-arago-extras/recipes-connectivity/open62541/open62541/0001-fix-pubsub-Implicit-declaration-of-pthread_create.patch
@@ -0,0 +1,30 @@
+From 42ede121eeb884bebc79b8083b93e8ce15b61be6 Mon Sep 17 00:00:00 2001
+From: Antonios Christidis <[email protected]>
+Date: Tue, 20 Jan 2026 07:37:55 -0600
+Subject: [PATCH] fix(pubsub): Implicit declaration of pthread_create
+
+Include header file, to fix error of implicit declaration of
+pthread_create.
+
+Upstream-Status: Submitted [https://github.com/open62541/open62541/pull/7655]
+
+Signed-off-by: Antonios Christidis <[email protected]>
+---
+ examples/pubsub_realtime/server_pubsub_publisher_rt_level.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/examples/pubsub_realtime/server_pubsub_publisher_rt_level.c b/examples/pubsub_realtime/server_pubsub_publisher_rt_level.c
+index 0ec133d1f..da4289a81 100644
+--- a/examples/pubsub_realtime/server_pubsub_publisher_rt_level.c
++++ b/examples/pubsub_realtime/server_pubsub_publisher_rt_level.c
+@@ -7,6 +7,7 @@
+ #include <open62541/server_pubsub.h>
+ #include <open62541/types.h>
+
++#include <pthread.h>
+ #include <signal.h>
+
+ #define PUBSUB_CONFIG_PUBLISH_CYCLE_MS 100
+--
+2.34.1
+
-- 
2.34.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.