From: Tim-Philipp Müller Date: Tue, 5 Jan 2010 01:35:41 +0000 (+0000) Subject: check: patch internal check copy some more so that failures actually fail X-Git-Tag: RELEASE-0.10.26~70 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9f99d056a263e71a5e6181224829def906cf0226;p=platform%2Fupstream%2Fgstreamer.git check: patch internal check copy some more so that failures actually fail Include unistd.h so that _POSIX_VERSION is actually defined when it should be defined. Without that, stuff like fail_if(1) doesn't actually fail, presumably because other parts of the code do include unistd.h and then have _POSIX_VERSION defined. Fixes #604565 even more. --- diff --git a/libs/gst/check/libcheck/check.c b/libs/gst/check/libcheck/check.c index fe4007a..88e9e10 100644 --- a/libs/gst/check/libcheck/check.c +++ b/libs/gst/check/libcheck/check.c @@ -31,6 +31,10 @@ #include "check_impl.h" #include "check_msg.h" +#ifdef HAVE_UNISTD_H +#include /* for _POSIX_VERSION */ +#endif + #ifndef DEFAULT_TIMEOUT #define DEFAULT_TIMEOUT 4 #endif