2022-12-27 18:26:17 +01:00
|
|
|
diff -Naur FreeFileSync_11.29_Source_orig/FreeFileSync/Source/Makefile FreeFileSync_11.29_Source/FreeFileSync/Source/Makefile
|
|
|
|
--- FreeFileSync_11.29_Source_orig/FreeFileSync/Source/Makefile 2022-12-16 20:32:28.000000000 +0100
|
|
|
|
+++ FreeFileSync_11.29_Source/FreeFileSync/Source/Makefile 2022-12-25 16:32:44.158452802 +0100
|
|
|
|
@@ -3,9 +3,9 @@
|
2020-08-06 13:13:05 +02:00
|
|
|
|
2022-12-27 18:26:17 +01:00
|
|
|
CXXFLAGS += -std=c++2b -pipe -DWXINTL_NO_GETTEXT_MACRO -I../.. -I../../zenXml -include "zen/i18n.h" -include "zen/warn_static.h" \
|
2020-10-04 15:56:49 +02:00
|
|
|
-Wall -Wfatal-errors -Wmissing-include-dirs -Wswitch-enum -Wcast-align -Wnon-virtual-dtor -Wno-unused-function -Wshadow -Wno-maybe-uninitialized \
|
2020-08-06 13:13:05 +02:00
|
|
|
- -O3 -DNDEBUG `wx-config --cxxflags --debug=no` -pthread
|
|
|
|
+ -O3 -DNDEBUG `wx-config --cxxflags --debug=no` -pthread -fpie
|
|
|
|
|
2022-12-27 18:26:17 +01:00
|
|
|
-LDFLAGS += -s -no-pie `wx-config --libs std, aui, richtext --debug=no` -pthread
|
|
|
|
+LDFLAGS += -s `wx-config --libs std, aui, richtext --debug=no` -pthread -lz -pie
|
2020-08-06 13:13:05 +02:00
|
|
|
|
|
|
|
|
2022-12-27 18:26:17 +01:00
|
|
|
CXXFLAGS += `pkg-config --cflags openssl`
|
|
|
|
@@ -17,9 +17,10 @@
|
|
|
|
CXXFLAGS += `pkg-config --cflags libssh2`
|
|
|
|
LDFLAGS += `pkg-config --libs libssh2`
|
2020-08-06 13:13:05 +02:00
|
|
|
|
2022-12-27 18:26:17 +01:00
|
|
|
-CXXFLAGS += `pkg-config --cflags gtk+-2.0`
|
|
|
|
+CXXFLAGS += `pkg-config --cflags gtk+-3.0`
|
|
|
|
+LDFLAGS += `pkg-config --libs gtk+-3.0`
|
2020-08-06 13:13:05 +02:00
|
|
|
#treat as system headers so that warnings are hidden:
|
2022-12-27 18:26:17 +01:00
|
|
|
-CXXFLAGS += -isystem/usr/include/gtk-2.0
|
|
|
|
+CXXFLAGS += -isystem/usr/include/gtk-3.0
|
2020-08-06 13:13:05 +02:00
|
|
|
|
2020-10-04 15:56:49 +02:00
|
|
|
#support for SELinux (optional)
|
|
|
|
SELINUX_EXISTING=$(shell pkg-config --exists libselinux && echo YES)
|
2022-12-27 18:26:17 +01:00
|
|
|
diff -Naur FreeFileSync_11.29_Source_orig/FreeFileSync/Source/RealTimeSync/Makefile FreeFileSync_11.29_Source/FreeFileSync/Source/RealTimeSync/Makefile
|
|
|
|
--- FreeFileSync_11.29_Source_orig/FreeFileSync/Source/RealTimeSync/Makefile 2022-12-16 20:32:28.000000000 +0100
|
|
|
|
+++ FreeFileSync_11.29_Source/FreeFileSync/Source/RealTimeSync/Makefile 2022-12-25 16:33:54.050236000 +0100
|
|
|
|
@@ -3,14 +3,15 @@
|
2020-08-06 13:13:05 +02:00
|
|
|
|
2022-12-27 18:26:17 +01:00
|
|
|
CXXFLAGS += -std=c++2b -pipe -DWXINTL_NO_GETTEXT_MACRO -I../../.. -I../../../zenXml -include "zen/i18n.h" -include "zen/warn_static.h" \
|
2020-10-04 15:56:49 +02:00
|
|
|
-Wall -Wfatal-errors -Wmissing-include-dirs -Wswitch-enum -Wcast-align -Wnon-virtual-dtor -Wno-unused-function -Wshadow -Wno-maybe-uninitialized \
|
2020-08-06 13:13:05 +02:00
|
|
|
- -O3 -DNDEBUG `wx-config --cxxflags --debug=no` -pthread
|
|
|
|
+ -O3 -DNDEBUG `wx-config --cxxflags --debug=no` -pthread -fpie
|
|
|
|
|
2022-12-27 18:26:17 +01:00
|
|
|
-LDFLAGS += -s -no-pie `wx-config --libs std, aui, richtext --debug=no` -pthread
|
|
|
|
+LDFLAGS += -s `wx-config --libs std, aui, richtext --debug=no` -pthread -lz -pie
|
2020-08-06 13:13:05 +02:00
|
|
|
|
|
|
|
#Gtk - support "no button border"
|
2022-12-27 18:26:17 +01:00
|
|
|
-CXXFLAGS += `pkg-config --cflags gtk+-2.0`
|
|
|
|
+CXXFLAGS += `pkg-config --cflags gtk+-3.0`
|
|
|
|
+LDFLAGS += `pkg-config --libs gtk+-3.0`
|
2020-08-06 13:13:05 +02:00
|
|
|
#treat as system headers so that warnings are hidden:
|
2022-12-27 18:26:17 +01:00
|
|
|
-CXXFLAGS += -isystem/usr/include/gtk-2.0
|
|
|
|
+CXXFLAGS += -isystem/usr/include/gtk-3.0
|
2020-08-06 13:13:05 +02:00
|
|
|
|
2020-10-04 15:56:49 +02:00
|
|
|
cppFiles=
|
|
|
|
cppFiles+=application.cpp
|
2022-12-27 18:26:17 +01:00
|
|
|
diff -Naur FreeFileSync_11.29_Source_orig/libssh2/libssh2_wrap.h FreeFileSync_11.29_Source/libssh2/libssh2_wrap.h
|
|
|
|
--- FreeFileSync_11.29_Source_orig/libssh2/libssh2_wrap.h 2022-12-16 20:32:30.000000000 +0100
|
|
|
|
+++ FreeFileSync_11.29_Source/libssh2/libssh2_wrap.h 2022-12-25 16:37:16.545609654 +0100
|
2020-08-06 13:13:05 +02:00
|
|
|
@@ -20,6 +20,22 @@
|
|
|
|
#error libssh2_sftp.h header guard changed
|
|
|
|
#endif
|
|
|
|
|
|
|
|
+// fix some build errors
|
|
|
|
+/* MAX_SFTP_READ_SIZE is how much data is asked for at max in each FXP_READ
|
|
|
|
+ * packets.
|
|
|
|
+ */
|
|
|
|
+#ifndef MAX_SFTP_READ_SIZE
|
2020-12-12 22:30:56 +01:00
|
|
|
+ #define MAX_SFTP_READ_SIZE 30000
|
2020-08-06 13:13:05 +02:00
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+/*
|
|
|
|
+ * MAX_SFTP_OUTGOING_SIZE MUST not be larger than 32500 or so. This is the
|
|
|
|
+ * amount of data sent in each FXP_WRITE packet
|
|
|
|
+ */
|
|
|
|
+#ifndef MAX_SFTP_OUTGOING_SIZE
|
2020-12-12 22:30:56 +01:00
|
|
|
+ #define MAX_SFTP_OUTGOING_SIZE 30000
|
2020-08-06 13:13:05 +02:00
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
//fix libssh2 64-bit warning mess: https://github.com/libssh2/libssh2/pull/96
|
|
|
|
#undef libssh2_userauth_password
|
|
|
|
inline int libssh2_userauth_password(LIBSSH2_SESSION* session, const std::string& username, const std::string& password)
|
2022-12-27 18:26:17 +01:00
|
|
|
diff -Naur FreeFileSync_11.29_Source_orig/zen/ring_buffer.h FreeFileSync_11.29_Source/zen/ring_buffer.h
|
|
|
|
--- FreeFileSync_11.29_Source_orig/zen/ring_buffer.h 2022-12-16 20:32:30.000000000 +0100
|
|
|
|
+++ FreeFileSync_11.29_Source/zen/ring_buffer.h 2022-12-25 16:37:57.073486335 +0100
|
2020-08-06 13:13:05 +02:00
|
|
|
@@ -8,6 +8,7 @@
|
|
|
|
#define RING_BUFFER_H_01238467085684139453534
|
|
|
|
|
|
|
|
#include <cassert>
|
|
|
|
+#include <cstddef>
|
|
|
|
#include "scope_guard.h"
|
|
|
|
|
|
|
|
|