Don't enable POSIX signals under QNX

Fixes #889
This commit is contained in:
Martin Hořeňovský 2017-04-20 21:02:25 +02:00
parent 2809be87cc
commit b95163bd3a
1 changed files with 9 additions and 2 deletions

View File

@ -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