check: patch internal check copy some more so that failures actually fail
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 5 Jan 2010 01:35:41 +0000 (01:35 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 5 Jan 2010 01:41:18 +0000 (01:41 +0000)
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.

libs/gst/check/libcheck/check.c

index fe4007a..88e9e10 100644 (file)
 #include "check_impl.h"
 #include "check_msg.h"
 
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>             /* for _POSIX_VERSION */
+#endif
+
 #ifndef DEFAULT_TIMEOUT
 #define DEFAULT_TIMEOUT 4
 #endif