tests: Fix compilation failure on macOS due to missing include

It’s needed for the `symlink()` function.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
Philip Withnall 2024-05-24 09:52:55 +01:00
parent 60845fce0a
commit 6187d40a0f
No known key found for this signature in database
GPG Key ID: DCDF5885B1F3ED73

View File

@ -23,6 +23,10 @@
#include <glib/glib.h>
#include <glib/gstdio.h>
#ifdef G_OS_UNIX
#include <unistd.h>
#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