diff options
author | Peter Foley <pefoley2@pefoley.com> | 2014-09-25 14:23:32 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2014-09-26 05:02:58 -0400 |
commit | 8c2b0dc83d9840da4d993a5dbb15c5974ad5a188 (patch) | |
tree | d1750009baa6051f3aec12087baad8700af7e3b5 /Documentation/mic | |
parent | 19f94f97003a70a5241efff035f6c181c290a799 (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/Makefile | 2 | ||||
-rw-r--r-- | Documentation/mic/mpssd/mpssd.c | 1 |
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 |
7 | always := $(hostprogs-y) | 7 | always := $(hostprogs-y) |
8 | 8 | ||
9 | HOSTCFLAGS_mpssd.o += -I$(objtree)/usr/include | 9 | HOSTCFLAGS_mpssd.o += -I$(objtree)/usr/include -I$(srctree)/tools/include |
10 | 10 | ||
11 | ifdef DEBUG | 11 | ifdef DEBUG |
12 | HOSTCFLAGS += -DDEBUG=$(DEBUG) | 12 | HOSTCFLAGS += -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 | ||
45 | static void init_mic(struct mic_info *mic); | 46 | static void init_mic(struct mic_info *mic); |
46 | 47 | ||