diff mbox series

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

Message ID 20260120152519.12538-3-a-christidis@ti.com
State Rejected
Delegated to: Ryan Eatmon
Headers show
Series Clean up patches for open62541 | expand

Commit Message

Antonios Christidis Jan. 20, 2026, 3:25 p.m. UTC
From: Antonios Christidis <a-christidis@ti.com>

Add patch for implicit declaration error for pthread_create().

Signed-off-by: Antonios Christidis <a-christidis@ti.com>
---
 .../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 mbox series

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 <a-christidis@ti.com>
+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 <a-christidis@ti.com>
+---
+ 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
+