tests: attempt to get disabled streamheader test to compile on win32
authorTim-Philipp Müller <tim@centricular.net>
Wed, 12 Sep 2012 08:48:47 +0000 (09:48 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Wed, 12 Sep 2012 08:49:17 +0000 (09:49 +0100)
Though it probably won't work, but then it's disabled.

tests/check/pipelines/streamheader.c

index be03e04..c126a70 100644 (file)
 #include "config.h"
 #endif
 
+#include <glib.h>
+
+#ifdef G_OS_WIN32
+#include <io.h>
+#define pipe(fds) _pipe(fds)
+#else
 #include <unistd.h>
+#endif
 
 #include <gio/gio.h>
 #include <gst/check/gstcheck.h>