projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10ba0c2
)
Make it compile on Windows.
author
Tor Lillqvist
<tml@iki.fi>
Tue, 7 Jul 2009 11:37:45 +0000
(14:37 +0300)
committer
Tor Lillqvist
<tml@iki.fi>
Tue, 7 Jul 2009 11:39:10 +0000
(14:39 +0300)
Surround a symlink-related code snippet with ifdef S_ISLNK.
gio/glocalfileinfo.c
patch
|
blob
|
history
diff --git
a/gio/glocalfileinfo.c
b/gio/glocalfileinfo.c
index
0c5b12c
..
72a59b5
100644
(file)
--- 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))
{