mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
Make it compile on Windows.
Surround a symlink-related code snippet with ifdef S_ISLNK.
This commit is contained in:
parent
10ba0c2e5c
commit
474ba7dbc3
@ -1530,6 +1530,7 @@ _g_local_file_info_get (const char *basename,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
symlink_target = NULL;
|
symlink_target = NULL;
|
||||||
|
#ifdef S_ISLNK
|
||||||
if (is_symlink)
|
if (is_symlink)
|
||||||
{
|
{
|
||||||
symlink_target = read_link (path);
|
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_ATTRIBUTE_ID_STANDARD_SYMLINK_TARGET))
|
||||||
g_file_info_set_symlink_target (info, symlink_target);
|
g_file_info_set_symlink_target (info, symlink_target);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
if (_g_file_attribute_matcher_matches_id (attribute_matcher,
|
if (_g_file_attribute_matcher_matches_id (attribute_matcher,
|
||||||
G_FILE_ATTRIBUTE_ID_STANDARD_DISPLAY_NAME))
|
G_FILE_ATTRIBUTE_ID_STANDARD_DISPLAY_NAME))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user