From: Christian Kamm Date: Tue, 15 Jan 2019 13:54:30 +0000 (+0100) Subject: Build fix for mingw64 7.3 (Qt 5.12.0) X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~317 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1cc41427fcd9e0b4cc6ee2257846157d590fa71e;p=nextcloud-desktop.git Build fix for mingw64 7.3 (Qt 5.12.0) --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f035a66be..98e63194c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -12,6 +12,7 @@ if(NOT TOKEN_AUTH_ONLY) find_package(Qt5Keychain REQUIRED) endif() +# TODO: Mingw64 7.3 might also need to be excluded here as it seems to not automatically link libssp if(NOT MSVC) if(NOT (CMAKE_SYSTEM_PROCESSOR MATCHES "^(alpha|parisc|hppa)") AND NOT CMAKE_CROSSCOMPILING) if((CMAKE_CXX_COMPILER_ID MATCHES "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9)) diff --git a/src/csync/std/c_private.h b/src/csync/std/c_private.h index 1802c2f38..9b1ee2502 100644 --- a/src/csync/std/c_private.h +++ b/src/csync/std/c_private.h @@ -42,8 +42,6 @@ #include // NOLINT this is sometimes compiled in C mode #ifdef __MINGW32__ -#define EDQUOT 0 -#define ENODATA 0 #ifndef S_IRGRP #define S_IRGRP 0 #endif @@ -74,10 +72,6 @@ #include #endif -#ifndef ENODATA -#define ENODATA EPIPE -#endif - #ifdef _WIN32 typedef struct stat64 csync_stat_t; // NOLINT this is sometimes compiled in C mode @@ -90,10 +84,6 @@ typedef struct stat csync_stat_t; // NOLINT this is sometimes compiled in C mode #define O_NOATIME 0 #endif -#ifndef ENODATA -#define ENODATA EBADF -#endif - #if !defined(HAVE_ASPRINTF) #if defined(HAVE___MINGW_ASPRINTF) #define asprintf __mingw_asprintf