symbian-qemu-0.9.1-12/qemu-symbian-svp/libfdt/patch.libfdt
author bugtracker-ml@nttdocomo.com
Thu, 22 Apr 2010 14:57:42 +0100
changeset 61 42fe4f76a74e
parent 1 2fb8b9db1c86
permissions -rw-r--r--
Fix bug 2183 - Clicking a QEMU skin button causes screen flicker on the display area (edit)

Minor changes are required to get libfdt to build as part of qemu.
The patch below records modifications relative to upstream dtc-v1.2.0.

Index: libfdt_env.h
===================================================================
--- libfdt_env.h	(revision 230023)
+++ libfdt_env.h	(working copy)
@@ -4,10 +4,9 @@
 #include <stddef.h>
 #include <stdint.h>
 #include <string.h>
-#include <endian.h>
-#include <byteswap.h>
+#include "bswap.h"
 
-#if __BYTE_ORDER == __BIG_ENDIAN
+#ifdef WORDS_BIGENDIAN
 #define fdt32_to_cpu(x)		(x)
 #define cpu_to_fdt32(x)		(x)
 #define fdt64_to_cpu(x)		(x)