Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorMartin Hořeňovský2017-04-20 21:02:25 +0200
committerMartin Hořeňovský2017-04-20 21:02:25 +0200
commitb95163bd3a76e36852f0d2db69e86f3f561e8379 (patch)
treedb111c5e60ebee31b47ed551d06b01ab53769252 /include
parent2809be87cc7e7d04a2af8d84355155b64611b479 (diff)
downloadcatch3-b95163bd3a76e36852f0d2db69e86f3f561e8379.tar.gz
Don't enable POSIX signals under QNX
Fixes #889
Diffstat (limited to 'include')
-rw-r--r--include/internal/catch_compiler_capabilities.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/internal/catch_compiler_capabilities.h b/include/internal/catch_compiler_capabilities.h
index 325ae028..ac6f259d 100644
--- a/include/internal/catch_compiler_capabilities.h
+++ b/include/internal/catch_compiler_capabilities.h
@@ -80,13 +80,20 @@
////////////////////////////////////////////////////////////////////////////////
-// Cygwin
-#ifdef __CYGWIN__
+// We know some environments not to support full POSIX signals
+#if defined(__CYGWIN__) || defined(__QNX__)
# if !defined(CATCH_CONFIG_POSIX_SIGNALS)
# define CATCH_INTERNAL_CONFIG_NO_POSIX_SIGNALS
# endif
+#endif
+
+
+////////////////////////////////////////////////////////////////////////////////
+// Cygwin
+#ifdef __CYGWIN__
+
// Required for some versions of Cygwin to declare gettimeofday
// see: http://stackoverflow.com/questions/36901803/gettimeofday-not-declared-in-this-scope-cygwin
# define _BSD_SOURCE