Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Mar 2023 01:00:03 GMT
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: c5e54e56e68a - main - tools/build: Hide spurious errors if sys/stat.h does not exist
Message-ID:  <202303020100.322103kT027217@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303020100.322103kT027217>