[Crosstoolchain-logs] [device-tree-compiler] 148/357: libfdt: libfdt_env.h must be included first

Hector Oron zumbi at moszumanska.debian.org
Thu Dec 8 17:06:08 UTC 2016


This is an automated email from the git hooks/post-receive script.

zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.

commit 6f8b7710c9e866d6880cf060127bdbdc932bc6a6
Author: David Gibson <david at gibson.dropbear.id.au>
Date:   Tue Oct 16 13:50:34 2007 +1000

    libfdt: libfdt_env.h must be included first
    
    libfdt.h currently includes fdt.h, then libfdt_env.h.  This is
    incorrect, because depending on the environment into which libfdt is
    embedded, libfdt_env.h may be needed to define datatypes used in
    fdt.h.  This patch corrects the problem.
    
    Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
---
 libfdt/libfdt.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libfdt/libfdt.h b/libfdt/libfdt.h
index 468e45f..8b7d501 100644
--- a/libfdt/libfdt.h
+++ b/libfdt/libfdt.h
@@ -51,8 +51,8 @@
  *     EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include <fdt.h>
 #include <libfdt_env.h>
+#include <fdt.h>
 
 #define FDT_FIRST_SUPPORTED_VERSION	0x10
 #define FDT_LAST_SUPPORTED_VERSION	0x11

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git



More information about the Crosstoolchain-logs mailing list