git: 2d415b019617 - stable/13 - tools/build: Hide spurious errors if sys/stat.h does not exist
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 06 Mar 2023 13:50:59 UTC
The branch stable/13 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=2d415b01961711e7e2c6a1bfc997cef12f2c135c commit 2d415b01961711e7e2c6a1bfc997cef12f2c135c Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2023-02-24 14:43:57 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2023-03-06 13:50:33 +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 (cherry picked from commit c5e54e56e68aa50beb7d2a7b8ae6611490a7ba9e) --- tools/build/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/build/Makefile b/tools/build/Makefile index 746f294aafba..1a74bcc7d9b4 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