]> git.ipfire.org Git - thirdparty/zstd.git/commit
Use `utimensat()` on FreeBSD 3960/head
authorW. Felix Handte <w@felixhandte.com>
Tue, 12 Mar 2024 21:01:17 +0000 (14:01 -0700)
committerW. Felix Handte <w@felixhandte.com>
Wed, 13 Mar 2024 20:26:21 +0000 (13:26 -0700)
commitd6ee2d5d2454f5023c78d59e7464c9c902d6597b
tree7bd9ca69f833d5be1500065cbd35be7c6ab7f408
parenta6ff1194d8019c74e5a09ca77d47c44313aa089c
Use `utimensat()` on FreeBSD

FreeBSD only claims to support POSIX 2001 [0]. But they do in fact support
`utimensat()`. This adds a specific check to opt them in to using it. This
value was selected by consulting [1].

See discussion on #3952.

Further addresses #3748.

[0] https://github.com/freebsd/freebsd-src/blob/937a0055858a098027f464abf0b2b1ec5d36748f/sys/sys/unistd.h#L96

[1] https://docs.freebsd.org/en/books/porters-handbook/versions/
programs/util.c