tools/build: Hide spurious errors if sys/stat.h does not exist

Reviewed by:	brooks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D38757
This commit is contained in:
Ed Maste 2023-02-24 09:43:57 -05:00
parent 005cca8361
commit c5e54e56e6

View file

@ -68,7 +68,11 @@ INCS+= stdlib.h
SRCS+= reallocarray.c
.endif
.if exists(${HOST_INCLUDE_ROOT}/sys/stat.h)
_WITH_UTIMENS!= grep -c utimensat ${HOST_INCLUDE_ROOT}/sys/stat.h || true
.else
_WITH_UTIMENS= 0
.endif
.if ${_WITH_UTIMENS} == 0
SYSINCS+= stat.h
SRCS+= futimens.c utimensat.c