diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2008-08-24 17:45:40 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2008-08-24 17:45:40 +0100 |
commit | 88d2208221b5128c89d65a6539c2cbcbc1fdba6e (patch) | |
tree | 46f11e9601f44c7307276408c0863fc7e46949cd /storage_xml.c | |
parent | 3b32017ca4d13d1385c8c96eef14fcd62ba17464 (diff) |
Now really fixing #429 by including unistd.h (which defines F_OK).
Diffstat (limited to 'storage_xml.c')
-rw-r--r-- | storage_xml.c | 5 |
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 |