Build fix for mingw64 7.3 (Qt 5.12.0)
authorChristian Kamm <mail@ckamm.de>
Tue, 15 Jan 2019 13:54:30 +0000 (14:54 +0100)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:58:37 +0000 (10:58 +0100)
src/CMakeLists.txt
src/csync/std/c_private.h

index f035a66be6828f04bfcf4a8bca9a2777750bed0d..98e63194c763136f065cdedee1b947666be285f4 100644 (file)
@@ -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))
index 1802c2f38d83e3e11476f2ff7f801e01e5ccec23..9b1ee25026a0834f00e3d888485f17f23d65104b 100644 (file)
@@ -42,8 +42,6 @@
 #include <errno.h>  // NOLINT this is sometimes compiled in C mode
 
 #ifdef __MINGW32__
-#define EDQUOT 0
-#define ENODATA 0
 #ifndef S_IRGRP
 #define S_IRGRP 0
 #endif
 #include <fcntl.h>
 #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