mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
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:
parent
005cca8361
commit
c5e54e56e6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user