Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Mar 2023 13:50:59 GMT
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 2d415b019617 - stable/13 - tools/build: Hide spurious errors if sys/stat.h does not exist
Message-ID:  <202303061350.326DoxL8056232@gitrepo.freebsd.org>

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



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