summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2021-02-27 10:53:53 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2021-02-27 10:53:53 +0800
commitcf02c280ff255f8af04f3bc76d142db92ddd8a01 (patch)
tree9d6a62817153b513e629f9da8a065732d02a2ff5
parentb3b829e3090e361b32a58ada705fd1311c250dce (diff)
downloadglib-fix.unix.nonlinux.ci.tar.gz
gio/tests/pollable.c: Fix build on non-Linux UNIXfix.unix.nonlinux.ci
For non-Linux UNIX systems, the label 'close_libutil:' in 'test_pollable_unix_pty()' will have no statement that goes with that label. Just do a 'return' on non-Linux UNIX systems.
-rw-r--r--gio/tests/pollable.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gio/tests/pollable.c b/gio/tests/pollable.c
index 01049788b..d57c4733a 100644
--- a/gio/tests/pollable.c
+++ b/gio/tests/pollable.c
@@ -225,6 +225,8 @@ test_pollable_unix_pty (void)
close_libutil:
#ifdef __linux__
dlclose (handle);
+#else
+ return;
#endif
}