@@ -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"
new file mode 100644
@@ -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
+