[glib] Make it compile on Windows.
- From: Tor Lillqvist <tml src gnome org>
- To: svn-commits-list gnome org
- Subject: [glib] Make it compile on Windows.
- Date: Tue, 7 Jul 2009 11:40:25 +0000 (UTC)
commit 474ba7dbc37e352d39c0057bd2a31504828dde36
Author: Tor Lillqvist <tml iki fi>
Date: Tue Jul 7 14:37:45 2009 +0300
Make it compile on Windows.
Surround a symlink-related code snippet with ifdef S_ISLNK.
gio/glocalfileinfo.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gio/glocalfileinfo.c b/gio/glocalfileinfo.c
index 0c5b12c..72a59b5 100644
--- a/gio/glocalfileinfo.c
+++ b/gio/glocalfileinfo.c
@@ -1530,6 +1530,7 @@ _g_local_file_info_get (const char *basename,
#endif
symlink_target = NULL;
+#ifdef S_ISLNK
if (is_symlink)
{
symlink_target = read_link (path);
@@ -1538,7 +1539,7 @@ _g_local_file_info_get (const char *basename,
G_FILE_ATTRIBUTE_ID_STANDARD_SYMLINK_TARGET))
g_file_info_set_symlink_target (info, symlink_target);
}
-
+#endif
if (_g_file_attribute_matcher_matches_id (attribute_matcher,
G_FILE_ATTRIBUTE_ID_STANDARD_DISPLAY_NAME))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]