From f868b7af0a89a9424d42a950e9e93695c7a42445 Mon Sep 17 00:00:00 2001 From: kevans Date: Thu, 23 Aug 2018 02:26:40 +0000 Subject: [PATCH] dtc(1): Update to 0892ec7; HACKING and implicit header fixes Fixes courtesy of arichardson and jmg: - HACKING was pointing to the wrong place - Added headers were being relied on implicitly, but libstdc++ did not comply with the unspoken wishes of dtc. MFC after: 1 week --- usr.bin/dtc/HACKING | 4 ++-- usr.bin/dtc/string.cc | 1 + usr.bin/dtc/util.hh | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/usr.bin/dtc/HACKING b/usr.bin/dtc/HACKING index 9acaeef5bfc..d90e0f5693b 100644 --- a/usr.bin/dtc/HACKING +++ b/usr.bin/dtc/HACKING @@ -8,9 +8,9 @@ This file contains some notes for people wishing to hack on dtc. Upstreaming ----------- -This code is developed in the FreeBSD svn repository: +This code is developed in the git repository: -https://svn.freebsd.org/base/head/usr.bin/dtc +https://github.com/davidchisnall/dtc If you got the source from anywhere else and wish to make changes, please ensure that you are working against the latest version, or you may end up diff --git a/usr.bin/dtc/string.cc b/usr.bin/dtc/string.cc index 71a304a2ea2..c5acb82687e 100644 --- a/usr.bin/dtc/string.cc +++ b/usr.bin/dtc/string.cc @@ -36,6 +36,7 @@ #include #include #include +#include #include #include diff --git a/usr.bin/dtc/util.hh b/usr.bin/dtc/util.hh index 337685ef3f4..84646b444b3 100644 --- a/usr.bin/dtc/util.hh +++ b/usr.bin/dtc/util.hh @@ -35,6 +35,9 @@ #ifndef _UTIL_HH_ #define _UTIL_HH_ +#include +#include +#include #include // If we aren't using C++11, then just ignore static asserts. -- 2.45.0