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:
@@ -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
|
||||
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user