aboutsummaryrefslogtreecommitdiff
path: root/tools/build/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build/Makefile')
-rw-r--r--tools/build/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/build/Makefile b/tools/build/Makefile
index 2617d8d4c4d5..63b147ceb985 100644
--- a/tools/build/Makefile
+++ b/tools/build/Makefile
@@ -4,9 +4,11 @@
LIB= egacy
SRC=
-INCSGROUPS= INCS
+INCSGROUPS= INCS SYSINCS
INCS=
+SYSINCSDIR= ${INCLUDEDIR}/sys
+
BOOTSTRAPPING?= 0
_WITH_PWCACHEDB!= grep -c pwcache_groupdb /usr/include/grp.h || true
@@ -33,6 +35,12 @@ SRCS+= reallocarray.c
CFLAGS+= -I${.CURDIR}/../../lib/libc/include
.endif
+_WITH_UTIMENS!= grep -c utimensat /usr/include/sys/stat.h || true
+.if ${_WITH_UTIMENS} == 0
+SYSINCS+= stat.h
+SRCS+= futimens.c utimensat.c
+.endif
+
.if empty(SRCS)
SRCS= dummy.c
.endif