676e6a30cb067f5f7ad1a326a9d5e0ce9ea67a76
[feed/packages.git] / utils / domoticz / patches / 010-gcc12.patch
1 From 2975b1113d9540f39b6bade3b6d459b61c2e5007 Mon Sep 17 00:00:00 2001
2 From: Arjen de Korte <build+github@de-korte.org>
3 Date: Sun, 15 May 2022 19:00:02 +0200
4 Subject: [PATCH] Fix compilation with GCC12
5
6 Building domoticz fails under GCC12 with the following error:
7
8 In file included from /usr/include/c++/12/utility:68,
9 from /home/abuild/rpmbuild/BUILD/domoticz-2022.1/main/LuaTable.cpp:10:
10 /usr/include/c++/12/bits/stl_relops.h:86:5: error: template with C linkage
11 86 | template <class _Tp>
12 | ^~~~~~~~
13 ---
14 main/LuaTable.cpp | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17 --- a/main/LuaTable.cpp
18 +++ b/main/LuaTable.cpp
19 @@ -6,9 +6,9 @@ extern "C" {
20 #include <lua.h>
21 #include <lualib.h>
22 #include <lauxlib.h>
23 +}
24
25 #include <utility>
26 -}
27
28 CLuaTable::CLuaTable(lua_State *lua_state, const std::string &Name)
29 {