synergy: fix missing include to <cstdint>

The upgrade to GCC 15 broke the build because `cstdint` isn't getting
transitively included via some other headers anymore [1].

This has been fixed in newer 1.x versions of synergy, but those include
some more drastic changes that would need to be addressed in Nixpkgs
(such as, at least, in the NixOS and nix-darwin synergy modules).

I've opened a PR for the update here [2], but this patch is a simpler
quick fix we can implement before that's sorted out.

[1]: https://gcc.gnu.org/gcc-15/porting_to.html#header-dep-changes
[2]: https://github.com/NixOS/nixpkgs/pull/486784
This commit is contained in:
Manuel Frischknecht
2026-02-06 20:13:44 +01:00
parent db8af4db31
commit 17f0d867e6
2 changed files with 16 additions and 0 deletions
@@ -0,0 +1,12 @@
diff --git a/src/lib/server/InputFilter.cpp b/src/lib/server/InputFilter.cpp
index da29f5b..65c500f 100755
--- a/src/lib/server/InputFilter.cpp
+++ b/src/lib/server/InputFilter.cpp
@@ -26,6 +26,7 @@
#include <cstdlib>
#include <cstring>
+#include <cstdint>
// -----------------------------------------------------------------------------
// Input Filter Condition Classes
+4
View File
@@ -42,6 +42,10 @@ stdenv.mkDerivation (finalAttrs: {
patches = [
# Without this OpenSSL from nixpkgs is not detected
./darwin-non-static-openssl.patch
# This missing include broke the build on GCC 15
# This can be removed once we switch to a newer version
./include_cstdint.patch
];
postPatch = ''