3 .PATH: ${.CURDIR}/../../include
7 INCSGROUPS= INCS SYSINCS
10 SYSINCSDIR= ${INCLUDEDIR}/sys
14 _WITH_PWCACHEDB!= grep -c pwcache_groupdb /usr/include/grp.h || true
15 .if ${_WITH_PWCACHEDB} == 0
16 .PATH: ${.CURDIR}/../../contrib/libc-pwcache
17 CFLAGS+= -I${.CURDIR}/../../contrib/libc-pwcache \
18 -I${.CURDIR}/../../lib/libc/include
22 _WITH_STRSVIS!= grep -c strsvis /usr/include/vis.h || true
23 .if ${_WITH_STRSVIS} == 0
24 .PATH: ${.CURDIR}/../../contrib/libc-vis
26 CFLAGS+= -I${.CURDIR}/../../contrib/libc-vis \
27 -I${.CURDIR}/../../lib/libc/include
30 _WITH_REALLOCARRAY!= grep -c reallocarray /usr/include/stdlib.h || true
31 .if ${_WITH_REALLOCARRAY} == 0
32 .PATH: ${.CURDIR}/../../lib/libc/stdlib
35 CFLAGS+= -I${.CURDIR}/../../lib/libc/include
38 _WITH_UTIMENS!= grep -c utimensat /usr/include/sys/stat.h || true
39 .if ${_WITH_UTIMENS} == 0
41 SRCS+= futimens.c utimensat.c
48 .if defined(CROSS_BUILD_TESTING)
52 # Needed to build config (since it uses libnv)
53 SYSINCS+= ${SRCTOP}/sys/sys/nv.h ${SRCTOP}/sys/sys/cnv.h