mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-05 06:58:49 +00:00
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.
This commit is contained in:
parent
1526e34687
commit
9f99d056a2
1 changed files with 4 additions and 0 deletions
|
@ -31,6 +31,10 @@
|
||||||
#include "check_impl.h"
|
#include "check_impl.h"
|
||||||
#include "check_msg.h"
|
#include "check_msg.h"
|
||||||
|
|
||||||
|
#ifdef HAVE_UNISTD_H
|
||||||
|
#include <unistd.h> /* for _POSIX_VERSION */
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef DEFAULT_TIMEOUT
|
#ifndef DEFAULT_TIMEOUT
|
||||||
#define DEFAULT_TIMEOUT 4
|
#define DEFAULT_TIMEOUT 4
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue