summaryrefslogtreecommitdiff
path: root/usr.bin/dtc
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2018-08-23 02:26:40 +0000
committerKyle Evans <kevans@FreeBSD.org>2018-08-23 02:26:40 +0000
commit67b60a1b7d46d959bdd4925944b149eebbfb593f (patch)
tree691d66b097398cf7406eb5b330a87ef5a9a6bde5 /usr.bin/dtc
parentea8b116b32a22782b0adab9c7ecf1ad5f29486d9 (diff)
downloadsrc-test-67b60a1b7d46d959bdd4925944b149eebbfb593f.tar.gz
src-test-67b60a1b7d46d959bdd4925944b149eebbfb593f.zip
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
Notes
Notes: svn path=/head/; revision=338232
Diffstat (limited to 'usr.bin/dtc')
-rw-r--r--usr.bin/dtc/HACKING4
-rw-r--r--usr.bin/dtc/string.cc1
-rw-r--r--usr.bin/dtc/util.hh3
3 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/dtc/HACKING b/usr.bin/dtc/HACKING
index 9acaeef5bfcdb..d90e0f5693b14 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 71a304a2ea281..c5acb82687ea9 100644
--- a/usr.bin/dtc/string.cc
+++ b/usr.bin/dtc/string.cc
@@ -36,6 +36,7 @@
#include <functional>
#include <cstdio>
#include <cstdlib>
+#include <cstring>
#include <ctype.h>
#include <libgen.h>
diff --git a/usr.bin/dtc/util.hh b/usr.bin/dtc/util.hh
index 337685ef3f483..84646b444b3a3 100644
--- a/usr.bin/dtc/util.hh
+++ b/usr.bin/dtc/util.hh
@@ -35,6 +35,9 @@
#ifndef _UTIL_HH_
#define _UTIL_HH_
+#include <memory>
+#include <stdint.h>
+#include <string>
#include <vector>
// If we aren't using C++11, then just ignore static asserts.