From 6187d40a0f6d083fc37522407644ca8223b57b46 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Fri, 24 May 2024 09:52:55 +0100 Subject: [PATCH] tests: Fix compilation failure on macOS due to missing include MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It’s needed for the `symlink()` function. Signed-off-by: Philip Withnall --- glib/tests/utils-isolated.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/glib/tests/utils-isolated.c b/glib/tests/utils-isolated.c index 3c9d8bc4a..beb6e56ba 100644 --- a/glib/tests/utils-isolated.c +++ b/glib/tests/utils-isolated.c @@ -23,6 +23,10 @@ #include #include +#ifdef G_OS_UNIX +#include +#endif + /* Test that all of the well-known directories returned by GLib * are returned as children of test_tmpdir when running with * %G_TEST_OPTION_ISOLATE_DIRS. This ensures that tests should