git: c5e54e56e68a - main - tools/build: Hide spurious errors if sys/stat.h does not exist
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 02 Mar 2023 01:00:03 UTC
The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=c5e54e56e68aa50beb7d2a7b8ae6611490a7ba9e commit c5e54e56e68aa50beb7d2a7b8ae6611490a7ba9e Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2023-02-24 14:43:57 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2023-03-02 00:59:26 +0000 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 --- tools/build/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/build/Makefile b/tools/build/Makefile index 53a735ae6295..c7875622b042 100644 --- a/tools/build/Makefile +++ b/tools/build/Makefile @@ -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