Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Feb 2020 04:38:59 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r358206 - in stable: 11/usr.bin/dtc 12/usr.bin/dtc
Message-ID:  <202002210438.01L4cxhk068983@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002210438.01L4cxhk068983>