summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2020-10-14 12:28:54 +0000
committerAlex Richardson <arichardson@FreeBSD.org>2020-10-14 12:28:54 +0000
commita525283161f88f2044200af7f8aac12c2c6819df (patch)
treebc5cecf2ac709f29c444729f2c8d96a165fdca62 /tools
parenta31993fece39b32ff45e7ef77c1b6e65ff832e37 (diff)
downloadsrc-test2-a525283161f88f2044200af7f8aac12c2c6819df.tar.gz
src-test2-a525283161f88f2044200af7f8aac12c2c6819df.zip
Fix more -Wundef warnings during bootstrap
Notes
Notes: svn path=/head/; revision=366699
Diffstat (limited to 'tools')
-rw-r--r--tools/build/Makefile4
-rw-r--r--tools/build/cross-build/include/common/sys/cdefs.h5
2 files changed, 2 insertions, 7 deletions
diff --git a/tools/build/Makefile b/tools/build/Makefile
index 023c6cf99f6f..01a29ad730af 100644
--- a/tools/build/Makefile
+++ b/tools/build/Makefile
@@ -57,8 +57,8 @@ _WITH_STRSVIS!= grep -c strsvis ${HOST_INCLUDE_ROOT}/vis.h 2>/dev/null || true
.PATH: ${.CURDIR}/../../contrib/libc-vis
INCS+= vis.h
SRCS+= vis.c unvis.c
-CFLAGS.vis.c+= -I${.CURDIR}/../../contrib/libc-vis
-CFLAGS.unvis.c+= -I${.CURDIR}/../../contrib/libc-vis
+CFLAGS.vis.c+= -I${.CURDIR}/../../contrib/libc-vis -DHAVE_VIS=0 -DHAVE_SVIS=0
+CFLAGS.unvis.c+= -I${.CURDIR}/../../contrib/libc-vis -DHAVE_VIS=0 -DHAVE_SVIS=0
.endif
_WITH_REALLOCARRAY!= grep -c reallocarray ${HOST_INCLUDE_ROOT}/stdlib.h || true
diff --git a/tools/build/cross-build/include/common/sys/cdefs.h b/tools/build/cross-build/include/common/sys/cdefs.h
index 2bd57eef908d..c86369ab778a 100644
--- a/tools/build/cross-build/include/common/sys/cdefs.h
+++ b/tools/build/cross-build/include/common/sys/cdefs.h
@@ -190,11 +190,6 @@ typedef unsigned short u_short;
typedef unsigned int u_int;
typedef unsigned long u_long;
-/* This is needed so that BSNMP doesn't redeclare an incompatible version */
-#define HAVE_STRLCPY 1
-/* The compiler supports __func__ */
-#define HAVE_DECL___FUNC__ 1
-
/* On MacOS __CONCAT is defined as x ## y, which won't expand macros */
#undef __CONCAT
#define __CONCAT1(x, y) x##y