aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/mic
diff options
context:
space:
mode:
authorPeter Foley <pefoley2@pefoley.com>2014-09-25 14:23:32 -0400
committerJiri Kosina <jkosina@suse.cz>2014-09-26 05:02:58 -0400
commit8c2b0dc83d9840da4d993a5dbb15c5974ad5a188 (patch)
treed1750009baa6051f3aec12087baad8700af7e3b5 /Documentation/mic
parent19f94f97003a70a5241efff035f6c181c290a799 (diff)
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/mic')
-rw-r--r--Documentation/mic/mpssd/Makefile2
-rw-r--r--Documentation/mic/mpssd/mpssd.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/mic/mpssd/Makefile b/Documentation/mic/mpssd/Makefile
index aaa89d137c1a..505d84f1825d 100644
--- a/Documentation/mic/mpssd/Makefile
+++ b/Documentation/mic/mpssd/Makefile
@@ -6,7 +6,7 @@ mpssd-objs := mpssd.o sysfs.o
6# Tell kbuild to always build the programs 6# Tell kbuild to always build the programs
7always := $(hostprogs-y) 7always := $(hostprogs-y)
8 8
9HOSTCFLAGS_mpssd.o += -I$(objtree)/usr/include 9HOSTCFLAGS_mpssd.o += -I$(objtree)/usr/include -I$(srctree)/tools/include
10 10
11ifdef DEBUG 11ifdef DEBUG
12HOSTCFLAGS += -DDEBUG=$(DEBUG) 12HOSTCFLAGS += -DDEBUG=$(DEBUG)
diff --git a/Documentation/mic/mpssd/mpssd.c b/Documentation/mic/mpssd/mpssd.c
index 24203ddba924..3c5c379fc29d 100644
--- a/Documentation/mic/mpssd/mpssd.c
+++ b/Documentation/mic/mpssd/mpssd.c
@@ -41,6 +41,7 @@
41#include "mpssd.h" 41#include "mpssd.h"
42#include <linux/mic_ioctl.h> 42#include <linux/mic_ioctl.h>
43#include <linux/mic_common.h> 43#include <linux/mic_common.h>
44#include <tools/endian.h>
44 45
45static void init_mic(struct mic_info *mic); 46static void init_mic(struct mic_info *mic);
46 47