From 87d7c2122e238cd3d9db9ef38612b0342ecb942d Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 12 Sep 2014 13:45:00 +0100 Subject: [PATCH 2/2] fdpass test: declare Fixture, and the fallback g_test_skip() if needed, if !HAVE_UNIX_FD_PASSING This was failing to cross-compile with mingw. --- test/fdpass.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/fdpass.c b/test/fdpass.c index b4848e2..e674a9b 100644 --- a/test/fdpass.c +++ b/test/fdpass.c @@ -71,7 +71,6 @@ _DBUS_STATIC_ASSERT (MAX_MESSAGE_UNIX_FDS < TOO_MANY_FDS); * conn conn conn conn */ -#ifdef HAVE_UNIX_FD_PASSING typedef struct { TestMainContext *ctx; DBusError e; @@ -97,6 +96,8 @@ static inline void my_test_skip (const gchar *s) } #endif +#ifdef HAVE_UNIX_FD_PASSING + static void oom (const gchar *doing) G_GNUC_NORETURN; static void -- 2.1.0