libuv: use the utimensat() codepath, we have this so no need to error out

from Lucas Raab
This commit is contained in:
sthen 2022-04-25 07:52:17 +00:00
parent 61498c963d
commit c23cad2973
2 changed files with 17 additions and 0 deletions

View File

@ -4,6 +4,7 @@ VER = 1.44.1
DISTNAME = libuv-v${VER}
PKGNAME = libuv-${VER}
CATEGORIES = devel
REVISION = 0
SHARED_LIBS += uv 4.1 # 1.0

View File

@ -0,0 +1,16 @@
we have utimensat() so no need to error out on uv__fs_lutime calls
https://github.com/libuv/libuv/pull/3607
Index: src/unix/fs.c
--- src/unix/fs.c.orig
+++ src/unix/fs.c
@@ -1181,7 +1181,8 @@ static ssize_t uv__fs_lutime(uv_fs_t* req) {
defined(_AIX71) || \
defined(__sun) || \
defined(__HAIKU__) || \
- defined(__GNU__)
+ defined(__GNU__) || \
+ defined(__OpenBSD__)
struct timespec ts[2];
ts[0] = uv__fs_to_timespec(req->atime);
ts[1] = uv__fs_to_timespec(req->mtime);