diff --git a/common/lib/libprop/prop_bool.c b/common/lib/libprop/prop_bool.c index d9e912b2cc41..63753424b4b6 100644 --- a/common/lib/libprop/prop_bool.c +++ b/common/lib/libprop/prop_bool.c @@ -1,4 +1,4 @@ -/* $NetBSD: prop_bool.c,v 1.17 2009/01/03 18:31:33 pooka Exp $ */ +/* $NetBSD: prop_bool.c,v 1.18 2019/05/08 02:25:50 thorpej Exp $ */ /*- * Copyright (c) 2006 The NetBSD Foundation, Inc. @@ -29,8 +29,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#include #include "prop_object_impl.h" +#include struct _prop_bool { struct _prop_object pb_obj; diff --git a/common/lib/libprop/prop_data.c b/common/lib/libprop/prop_data.c index 5ef9e35e307a..cfcc43e0729c 100644 --- a/common/lib/libprop/prop_data.c +++ b/common/lib/libprop/prop_data.c @@ -1,4 +1,4 @@ -/* $NetBSD: prop_data.c,v 1.14 2009/01/25 06:59:35 cyber Exp $ */ +/* $NetBSD: prop_data.c,v 1.15 2019/05/08 02:25:50 thorpej Exp $ */ /*- * Copyright (c) 2006 The NetBSD Foundation, Inc. @@ -29,8 +29,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#include #include "prop_object_impl.h" +#include #if defined(_KERNEL) #include diff --git a/common/lib/libprop/prop_number.c b/common/lib/libprop/prop_number.c index 0d636dd0cf5c..5df04ae688f1 100644 --- a/common/lib/libprop/prop_number.c +++ b/common/lib/libprop/prop_number.c @@ -1,4 +1,4 @@ -/* $NetBSD: prop_number.c,v 1.30 2016/06/28 06:47:35 pgoyette Exp $ */ +/* $NetBSD: prop_number.c,v 1.31 2019/05/08 02:25:50 thorpej Exp $ */ /*- * Copyright (c) 2006 The NetBSD Foundation, Inc. @@ -29,9 +29,9 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#include -#include #include "prop_object_impl.h" +#include +#include #if defined(_KERNEL) #include diff --git a/common/lib/libprop/prop_object_impl.h b/common/lib/libprop/prop_object_impl.h index 6b1630be0e24..7ffdcbe3a744 100644 --- a/common/lib/libprop/prop_object_impl.h +++ b/common/lib/libprop/prop_object_impl.h @@ -1,4 +1,4 @@ -/* $NetBSD: prop_object_impl.h,v 1.32 2015/05/11 16:50:35 christos Exp $ */ +/* $NetBSD: prop_object_impl.h,v 1.33 2019/05/08 02:25:50 thorpej Exp $ */ /*- * Copyright (c) 2006 The NetBSD Foundation, Inc. @@ -32,6 +32,10 @@ #ifndef _PROPLIB_PROP_OBJECT_IMPL_H_ #define _PROPLIB_PROP_OBJECT_IMPL_H_ +#if defined(HAVE_NBTOOL_CONFIG_H) +#include "nbtool_config.h" +#endif + #if defined(_KERNEL) || defined(_STANDALONE) #include #else diff --git a/common/lib/libprop/prop_stack.c b/common/lib/libprop/prop_stack.c index a08118c2a445..473dec4a5b6d 100644 --- a/common/lib/libprop/prop_stack.c +++ b/common/lib/libprop/prop_stack.c @@ -1,4 +1,4 @@ -/* $NetBSD: prop_stack.c,v 1.2 2007/08/30 12:23:54 joerg Exp $ */ +/* $NetBSD: prop_stack.c,v 1.3 2019/05/08 02:25:50 thorpej Exp $ */ /*- * Copyright (c) 2007 Joerg Sonnenberger . @@ -29,8 +29,8 @@ * SUCH DAMAGE. */ -#include "prop_stack.h" #include "prop_object_impl.h" +#include "prop_stack.h" void _prop_stack_init(prop_stack_t stack) diff --git a/common/lib/libprop/prop_string.c b/common/lib/libprop/prop_string.c index a53128c818ae..6adad1a06aaa 100644 --- a/common/lib/libprop/prop_string.c +++ b/common/lib/libprop/prop_string.c @@ -1,4 +1,4 @@ -/* $NetBSD: prop_string.c,v 1.12 2014/03/26 18:12:46 christos Exp $ */ +/* $NetBSD: prop_string.c,v 1.13 2019/05/08 02:25:50 thorpej Exp $ */ /*- * Copyright (c) 2006 The NetBSD Foundation, Inc. @@ -29,8 +29,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#include #include "prop_object_impl.h" +#include struct _prop_string { struct _prop_object ps_obj; diff --git a/tools/compat/Makefile b/tools/compat/Makefile index 8291a7528385..b5adb8a5f2e9 100644 --- a/tools/compat/Makefile +++ b/tools/compat/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.86 2018/08/30 12:05:34 christos Exp $ +# $NetBSD: Makefile,v 1.87 2019/05/08 02:25:50 thorpej Exp $ HOSTLIB= nbcompat @@ -13,7 +13,7 @@ SRCS= atoll.c basename.c cdbr.c cdbw.c dirname.c \ mi_vector_hash.c mkdtemp.c \ mkstemp.c pread.c putc_unlocked.c pwcache.c pwrite.c \ pw_scan.c \ - raise_default_signal.c reallocarr.c rmd160.c rmd160hl.c \ + raise_default_signal.c rb.c reallocarr.c rmd160.c rmd160hl.c \ regcomp.c regerror.c regexec.c regfree.c \ setenv.c setgroupent.c \ setpassent.c setprogname.c sha1.c sha1hl.c sha2.c \ @@ -54,6 +54,7 @@ CPPFLAGS+= -I. -I./include -I${.CURDIR} -I${.CURDIR}/sys \ ${.CURDIR}/../../lib/libc/string \ ${.CURDIR}/../../lib/libutil \ ${.CURDIR}/../../common/lib/libc/cdb \ + ${.CURDIR}/../../common/lib/libc/gen \ ${.CURDIR}/../../common/lib/libc/string \ ${.CURDIR}/../../common/lib/libc/hash/rmd160 \ ${.CURDIR}/../../common/lib/libc/hash/sha1 \ diff --git a/tools/compat/sys/rbtree.h b/tools/compat/sys/rbtree.h new file mode 100644 index 000000000000..39e92cb9b3aa --- /dev/null +++ b/tools/compat/sys/rbtree.h @@ -0,0 +1,4 @@ +/* $NetBSD: rbtree.h,v 1.1 2019/05/08 02:25:50 thorpej Exp $ */ + +/* We unconditionally use the NetBSD rbtree(3) in libnbcompat. */ +#include "../../../sys/sys/rbtree.h" diff --git a/tools/libprop/Makefile b/tools/libprop/Makefile index d1f03ab4aa41..58694b58da6d 100644 --- a/tools/libprop/Makefile +++ b/tools/libprop/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2019/05/07 04:29:45 thorpej Exp $ +# $NetBSD: Makefile,v 1.2 2019/05/08 02:25:50 thorpej Exp $ HOSTLIB= prop @@ -10,6 +10,7 @@ LIBPROP_INC= ${.CURDIR}/../../common/include .include "${LIBPROP_DIR}/Makefile.inc" CPPFLAGS+= -I${.CURDIR}/../compat -I${LIBPROP_INC} +CPPFLAGS+= -I${TOOLDIR}/include/compat CPPFLAGS+= -I${TOOLDIR}/include/nbinclude .PATH: ${LIBPROP_DIR}