lol
1diff -u -r1.35.2.1 nbtool_config.h.in
2--- a/nbtool_config.h.in 22 Apr 2015 07:18:58 -0000 1.35.2.1
3+++ b/nbtool_config.h.in 31 May 2018 01:46:53 -0000
4@@ -680,5 +680,14 @@
5 /* Define if you have u_int8_t, but not uint8_t. */
6 #undef uint8_t
7
8+#ifdef __cplusplus
9+extern "C" {
10+#endif
11+
12 #include "compat_defs.h"
13+
14+#ifdef __cplusplus
15+}
16+#endif
17+
18 #endif /* !__NETBSD_NBTOOL_CONFIG_H__ */