From 3f184c3abc553a44dcdf17c10563b330b560bdf8 Mon Sep 17 00:00:00 2001 From: Tim-Philipp Müller Date: Tue, 16 Jan 2018 18:14:59 +0000 Subject: tests: include config.h and don't include unix headers In many cases the unistd.h includes weren't actually needed. Don't build tests that need it on windows with MSVC (multifdsink, multisocketsink, pipelines/tcp). Preparation for making tests work on Windows with MSVC. --- tests/check/elements/vorbisdec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/check/elements/vorbisdec.c') diff --git a/tests/check/elements/vorbisdec.c b/tests/check/elements/vorbisdec.c index 456495283..b18f97b19 100644 --- a/tests/check/elements/vorbisdec.c +++ b/tests/check/elements/vorbisdec.c @@ -19,8 +19,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ - -#include +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include -- cgit v1.2.3