Dist/Tizen: Fix build errors with gcc-14 accepted/tizen_9.0_unified accepted/tizen_unified accepted/tizen_unified_dev accepted/tizen_unified_toolchain accepted/tizen_unified_x accepted/tizen_unified_x_asan tizen tizen_9.0 accepted/tizen/9.0/unified/20241030.231320 accepted/tizen/unified/20240611.123115 accepted/tizen/unified/dev/20240620.003247 accepted/tizen/unified/toolchain/20240610.172654 accepted/tizen/unified/x/20240610.223240 accepted/tizen/unified/x/asan/20240625.091948 tizen_9.0_m2_release
authorWook Song <wook16.song@samsung.com>
Fri, 7 Jun 2024 03:56:05 +0000 (12:56 +0900)
committerWook Song <wook16.song@samsung.com>
Fri, 7 Jun 2024 03:56:05 +0000 (12:56 +0900)
This patch fixes build errors from pthread_create() with gcc-14.

Change-Id: I804241cd985aeda5cc2312588b4d14d6b0d98f59
Signed-off-by: Wook Song <wook16.song@samsung.com>
packaging/0005-API-XLinkConsole-Add-a-missing-header-include.patch [new file with mode: 0644]
packaging/libmvnc.spec

diff --git a/packaging/0005-API-XLinkConsole-Add-a-missing-header-include.patch b/packaging/0005-API-XLinkConsole-Add-a-missing-header-include.patch
new file mode 100644 (file)
index 0000000..254acc1
--- /dev/null
@@ -0,0 +1,29 @@
+From cf7dbfc47f0c1cfa8931e6fb914d66fe77b7e04e Mon Sep 17 00:00:00 2001
+From: Wook Song <wook16.song@samsung.com>
+Date: Fri, 7 Jun 2024 11:46:32 +0900
+Subject: [PATCH] [API/XLinkConsole] Add a missing header include, pthread.h
+
+This patch fixes a compile error related to the implicit declaration of
+function 'pthread_create'.
+
+Change-Id: Id4e2a2a8c33082589073d676db97071c9daa76d3
+Signed-off-by: Wook Song <wook16.song@samsung.com>
+---
+ api/src/common/components/XLinkConsole/pc/XLinkConsole.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/api/src/common/components/XLinkConsole/pc/XLinkConsole.c b/api/src/common/components/XLinkConsole/pc/XLinkConsole.c
+index 8e46f04..6524e95 100644
+--- a/api/src/common/components/XLinkConsole/pc/XLinkConsole.c
++++ b/api/src/common/components/XLinkConsole/pc/XLinkConsole.c
+@@ -27,6 +27,7 @@
+ #include <unistd.h>
+ #include <errno.h>
+ #include <arpa/inet.h>
++#include <pthread.h>
+ #define MVLOG_UNIT_NAME xLinkConsole
+ #include "mvLog.h"
+-- 
+2.34.1
+
index a508221ca79ca6ece291b993b31e6598020fc613..2d4fc151fa75a8024830c3991cff2c0b6c06cf45 100644 (file)
@@ -20,6 +20,7 @@ Patch0:     0001-API-Makefile-Revise-Makefile-for-API.patch
 Patch1:     0002-API-Makefile-Generalize-Makefile.patch
 Patch2:     0003-API-Makefile-Modifies-Makefile-to-generate-libmvnc.p.patch
 Patch3:     0004-API-Makefile-Add-flag-to-skip-.-get_mvcmd.sh-when-it.patch
+Patch4:     0005-API-XLinkConsole-Add-a-missing-header-include.patch
 Requires(post): %{_sbindir}/udevadm %{_sbindir}/ldconfig
 Requires(postun): %{_sbindir}/udevadm %{_sbindir}/ldconfig
 Requires: mvnc-2450-firmware
@@ -48,6 +49,7 @@ This package provides headers and other miscellaneous files required to use NCSD
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 cp %{SOURCE1} .
 cp %{SOURCE1001} .
 cp %{SOURCE1002} .