summaryrefslogtreecommitdiff
path: root/x11-misc/synergy/files/synergy-1.14.1.32-gcc13.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-04-18 11:55:01 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-04-18 11:55:01 +0100
commit7288c6e5fa05acddbf692a5187d925ef85662b46 (patch)
tree54bfc06561e59d1ad1e6e7bdbd06b76fc4ba0d06 /x11-misc/synergy/files/synergy-1.14.1.32-gcc13.patch
parent5a1fb66df455454109e1de61d38b48f509dc68b8 (diff)
gentoo auto-resync : 18:04:2023 - 11:55:01
Diffstat (limited to 'x11-misc/synergy/files/synergy-1.14.1.32-gcc13.patch')
-rw-r--r--x11-misc/synergy/files/synergy-1.14.1.32-gcc13.patch57
1 files changed, 57 insertions, 0 deletions
diff --git a/x11-misc/synergy/files/synergy-1.14.1.32-gcc13.patch b/x11-misc/synergy/files/synergy-1.14.1.32-gcc13.patch
new file mode 100644
index 000000000000..655199f4b04a
--- /dev/null
+++ b/x11-misc/synergy/files/synergy-1.14.1.32-gcc13.patch
@@ -0,0 +1,57 @@
+https://bugs.gentoo.org/898032
+https://github.com/symless/synergy-core/commit/ab8a7b5ed44a3aeadc7a20f0e4020d47ac258e14
+
+From ab8a7b5ed44a3aeadc7a20f0e4020d47ac258e14 Mon Sep 17 00:00:00 2001
+From: Sergei Trofimovich <slyich@gmail.com>
+Date: Thu, 8 Dec 2022 09:16:44 +0000
+Subject: [PATCH] add missing <cstdint> includes for SIZE_MAX (#7237)
+
+Without the change the build on upcoming `gcc-13` ails as:
+
+ src/lib/base/Log.cpp: In member function 'void Log::print(const char*, int, const char*, ...)':
+ src/lib/base/Log.cpp:128:23:
+ error: 'SIZE_MAX' was not declared in this scope
+ 128 | if ((strnlen(fmt, SIZE_MAX) > 2) && (fmt[0] == '%' && fmt[1] == 'z')) {
+ | ^~~~~~~~
+ src/lib/base/Log.cpp:30:1:
+ note: 'SIZE_MAX' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
+ 29 | #include <ctime>
+ +++ |+#include <cstdint>
+ 30 |
+
+gcc-13 cleaned it's header dependencies and that exposes these failures.
+--- a/src/lib/base/Log.cpp
++++ b/src/lib/base/Log.cpp
+@@ -23,10 +23,11 @@
+ #include "base/log_outputters.h"
+ #include "common/Version.h"
+
++#include <cstdint>
+ #include <cstdio>
+ #include <cstring>
+ #include <iostream>
+-#include <ctime>
++#include <ctime>
+
+ // names of priorities
+ static const char* g_priority[] = {
+--- a/src/lib/base/String.cpp
++++ b/src/lib/base/String.cpp
+@@ -21,6 +21,7 @@
+ #include "common/stdvector.h"
+
+ #include <cctype>
++#include <cstdint>
+ #include <cstdio>
+ #include <cstdlib>
+ #include <cstring>
+--- a/src/lib/synergy/IKeyState.cpp
++++ b/src/lib/synergy/IKeyState.cpp
+@@ -19,6 +19,7 @@
+ #include "synergy/IKeyState.h"
+ #include "base/EventQueue.h"
+
++#include <cstdint>
+ #include <cstring>
+ #include <cstdlib>
+