Fix Werrors with GCC-14.1.0 66/312266/1 accepted/tizen_unified accepted/tizen_unified_dev accepted/tizen_unified_toolchain accepted/tizen_unified_x accepted/tizen_unified_x_asan tizen accepted/tizen/unified/20240611.123625 accepted/tizen/unified/dev/20240620.010910 accepted/tizen/unified/toolchain/20240610.173234 accepted/tizen/unified/x/20240610.223808 accepted/tizen/unified/x/asan/20240625.092611
authorDongHun Kwak <dh0128.kwak@samsung.com>
Wed, 5 Jun 2024 10:41:05 +0000 (19:41 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Wed, 5 Jun 2024 10:41:05 +0000 (19:41 +0900)
include types.h at eventdispatcher.h

Change-Id: I11ba3321e128bc4fc1b6a6b0ce656ca842f964a6

packaging/add_type_header_to_eventdispatcher_header.patch [new file with mode: 0644]
packaging/libzypp.spec

diff --git a/packaging/add_type_header_to_eventdispatcher_header.patch b/packaging/add_type_header_to_eventdispatcher_header.patch
new file mode 100644 (file)
index 0000000..b33ae4f
--- /dev/null
@@ -0,0 +1,12 @@
+diff --git a/zypp/zyppng/base/eventdispatcher.h b/zypp/zyppng/base/eventdispatcher.h
+index 07a2b6690..3fc67486e 100644
+--- a/zypp/zyppng/base/eventdispatcher.h
++++ b/zypp/zyppng/base/eventdispatcher.h
+@@ -20,6 +20,7 @@
+ #include <zypp/zyppng/base/AbstractEventSource>
+ #include <memory>
+ #include <functional>
++#include <sys/types.h>
+ namespace zyppng {
index 2061fa4..b80716a 100644 (file)
@@ -10,6 +10,7 @@ Source10:       Exclude_subdirectory.patch
 Source11:       add_pie_compile_option.patch
 Source12:       fix_swig_syntax_error.patch
 Source13:       add_time_header_to_random.patch
+Source14:       add_type_header_to_eventdispatcher_header.patch
 Source1001:    libzypp.manifest
 
 # Features we provide (update doc/autoinclude/FeatureTest.doc):
@@ -111,6 +112,7 @@ cp %{SOURCE1001} .
 %{__patch} -p1 < %{SOURCE11}
 %{__patch} -p1 < %{SOURCE12}
 %{__patch} -p1 < %{SOURCE13}
+%{__patch} -p1 < %{SOURCE14}
 
 %build
 mkdir build