summaryrefslogtreecommitdiffstats
path: root/Documentation/arm/SH-Mobile
diff options
context:
space:
mode:
authorPeter Foley <pefoley2@pefoley.com>2014-09-25 20:23:32 +0200
committerJiri Kosina <jkosina@suse.cz>2014-09-26 11:02:58 +0200
commit8c2b0dc83d9840da4d993a5dbb15c5974ad5a188 (patch)
treed1750009baa6051f3aec12087baad8700af7e3b5 /Documentation/arm/SH-Mobile
parentv4l2-pci-skeleton: Only build if PCI is available (diff)
downloadlinux-8c2b0dc83d9840da4d993a5dbb15c5974ad5a188.tar.xz
linux-8c2b0dc83d9840da4d993a5dbb15c5974ad5a188.zip
Documentation: support glibc versions without htole macros
glibc 2.9 introduced the htole<16/32/64> macros, add them to tools/include to support older versions of glibc. Reported-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Peter Foley <pefoley2@pefoley.com> Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'Documentation/arm/SH-Mobile')
-rw-r--r--Documentation/arm/SH-Mobile/Makefile2
-rw-r--r--Documentation/arm/SH-Mobile/vrl4.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/arm/SH-Mobile/Makefile b/Documentation/arm/SH-Mobile/Makefile
index ac8075dcfddc..bca8a7ef6bbe 100644
--- a/Documentation/arm/SH-Mobile/Makefile
+++ b/Documentation/arm/SH-Mobile/Makefile
@@ -4,4 +4,4 @@ hostprogs-y := vrl4
# Tell kbuild to always build the programs
always := $(hostprogs-y)
-HOSTCFLAGS_vrl4.o += -I$(objtree)/usr/include
+HOSTCFLAGS_vrl4.o += -I$(objtree)/usr/include -I$(srctree)/tools/include
diff --git a/Documentation/arm/SH-Mobile/vrl4.c b/Documentation/arm/SH-Mobile/vrl4.c
index 4cbbba58f3d2..f4cd8ad4e720 100644
--- a/Documentation/arm/SH-Mobile/vrl4.c
+++ b/Documentation/arm/SH-Mobile/vrl4.c
@@ -34,6 +34,7 @@
#include <stdint.h>
#include <stdio.h>
#include <errno.h>
+#include <tools/endian.h>
struct hdr {
uint32_t magic1;