mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-15 04:05:11 +01:00
Merge branch 'backport-1684-fstatat-macos-glib-2-66' into 'glib-2-66'
Backport !1684 “glocalfileinfo: Fix use of fstatat() on macOS < 10.10” to glib-2-66 See merge request GNOME/glib!1685
This commit is contained in:
commit
3a6302c32a
@ -236,12 +236,12 @@ g_local_file_fstatat (int fd,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef G_OS_WIN32
|
#if !defined(G_OS_WIN32) && defined(AT_FDCWD)
|
||||||
/* Currently not supported on Windows */
|
return fstatat (fd, path, stat_buf, flags);
|
||||||
|
#else
|
||||||
|
/* Currently not supported on Windows or macOS < 10.10 */
|
||||||
errno = ENOSYS;
|
errno = ENOSYS;
|
||||||
return -1;
|
return -1;
|
||||||
#else
|
|
||||||
return fstatat (fd, path, stat_buf, flags);
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user