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))
#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
#define O_NOATIME 0
#endif
-#ifndef ENODATA
-#define ENODATA EBADF
-#endif
-
#if !defined(HAVE_ASPRINTF)
#if defined(HAVE___MINGW_ASPRINTF)
#define asprintf __mingw_asprintf