gutils: Disable some dead code on macOS

This code isn’t used when building on macOS, so ifdef it out to avoid a
compiler warning.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall
2021-11-17 15:43:31 +00:00
parent 81a31fd062
commit 6554af0320
2 changed files with 3 additions and 3 deletions

View File

@@ -553,7 +553,7 @@ test_os_info (void)
{
gchar *name;
gchar *contents = NULL;
#ifdef G_OS_UNIX
#if defined (G_OS_UNIX) && !(defined (G_OS_WIN32) || defined (__APPLE__))
struct utsname info;
#endif