aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--storage_xml.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/storage_xml.c b/storage_xml.c
index 240206f1..8b205c5a 100644
--- a/storage_xml.c
+++ b/storage_xml.c
@@ -30,8 +30,11 @@
#include "md5.h"
#include <glib/gstdio.h>
-#if !GLIB_CHECK_VERSION(2,8,0)
+#if GLIB_CHECK_VERSION(2,8,0)
+#include <glib/gstdio.h>
+#else
/* GLib < 2.8.0 doesn't have g_access, so just use the system access(). */
+#include <unistd.h>
#define g_access access
#endif