diff options
author | Peter Williams <peter@newton.cx> | 2022-09-21 11:56:33 -0400 |
---|---|---|
committer | Peter Williams <peter@newton.cx> | 2022-09-21 11:56:33 -0400 |
commit | 7f7171e68a420991b537d3e9e63263a0b2871618 (patch) | |
tree | 4cf76fb7ea637577f4bacddbfaeac7b90996b4f4 | |
parent | 87b4771d1f4f1cf110b43c1eaa136fa069c0c270 (diff) | |
download | glib-7f7171e68a420991b537d3e9e63263a0b2871618.tar.gz |
gio: properly guard use of utimensat()
Closes #2766.
-rw-r--r-- | gio/glocalfileinfo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gio/glocalfileinfo.c b/gio/glocalfileinfo.c index 6f186957a..c9e5c8b64 100644 --- a/gio/glocalfileinfo.c +++ b/gio/glocalfileinfo.c @@ -2800,6 +2800,7 @@ set_mtime_atime (char *filename, return FALSE; } +#if defined (HAVE_UTIMENSAT) res = utimensat (AT_FDCWD, filename, times_n, 0); if (res == -1) { @@ -2811,6 +2812,7 @@ set_mtime_atime (char *filename, g_strerror (errsv)); return FALSE; } +#endif return TRUE; } #endif |