svn commit: r358206 - in stable: 11/usr.bin/dtc 12/usr.bin/dtc
Kyle Evans
kevans at FreeBSD.org
Fri Feb 21 04:39:00 UTC 2020
Author: kevans
Date: Fri Feb 21 04:38:59 2020
New Revision: 358206
URL: https://svnweb.freebsd.org/changeset/base/358206
Log:
MFC r347445, r353961: dtc build issues
r347445:
Fix build issue with clang 8.0.1
The algorithm header is needed to use std::remove_if
r353961:
exit requires stdlib.h to be included to use.
FreeBSD 10.3 requires this, and dtc is a bootstrap tool so it needs to
compile
there.
Modified:
stable/11/usr.bin/dtc/dtb.cc
stable/11/usr.bin/dtc/fdt.hh
Directory Properties:
stable/11/ (props changed)
Changes in other areas also in this revision:
Modified:
stable/12/usr.bin/dtc/dtb.cc
stable/12/usr.bin/dtc/fdt.hh
Directory Properties:
stable/12/ (props changed)
Modified: stable/11/usr.bin/dtc/dtb.cc
==============================================================================
--- stable/11/usr.bin/dtc/dtb.cc Fri Feb 21 04:34:54 2020 (r358205)
+++ stable/11/usr.bin/dtc/dtb.cc Fri Feb 21 04:38:59 2020 (r358206)
@@ -36,6 +36,7 @@
#include <sys/types.h>
#include <inttypes.h>
#include <stdio.h>
+#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
Modified: stable/11/usr.bin/dtc/fdt.hh
==============================================================================
--- stable/11/usr.bin/dtc/fdt.hh Fri Feb 21 04:34:54 2020 (r358205)
+++ stable/11/usr.bin/dtc/fdt.hh Fri Feb 21 04:38:59 2020 (r358206)
@@ -34,6 +34,7 @@
#ifndef _FDT_HH_
#define _FDT_HH_
+#include <algorithm>
#include <unordered_map>
#include <unordered_set>
#include <memory>
More information about the svn-src-stable-11
mailing list