mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +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 a new issue