]> Savannah Git Hosting - gnulib.git/commit
utimens: port to NetBSD-10.99.12/amd64
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 17 Sep 2024 06:55:37 +0000 (23:55 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 17 Sep 2024 06:56:17 +0000 (23:56 -0700)
commit1d7d05e95c67eca129a4144c8c3a68ef23f7ba4d
tree5608eb527b85df9bb735878aa5f77af3af9bffde
parentd7f11dcc15b69ce9e1f7bb0820572aa75eb196fb
utimens: port to NetBSD-10.99.12/amd64

On this platform, <sys/time.h> declares utimens and lutimens and the
C library defines them, so we needn’t (and shouldn’t).
Problem reported privately by Thomas Klausner.
* lib/utimens.c (utimens) [HAVE_UTIMENS]: Don’t define.
(lutimens) [HAVE_LUTIMENS]: Don’t define.
* lib/utimens.h [HAVE_UTIMENS || HAVE_LUTIMENS]:
Include <sys/time.h>, for NetBSD’s declaration of utimens and lutimens.
(utimens) [HAVE_UTIMENS]: Don’t declare.
(lutimens) [HAVE_LUTIMENS]: Don’t declare.
* m4/utimens.m4 (gl_UTIMENS): Check for utimens, lutimens.
ChangeLog
lib/utimens.c
lib/utimens.h
m4/utimens.m4