1 mmc-utils: fix mmc.h includes
3 Some toolchains include asm-generic/int-l64.h from their asm/types.h
4 file for certain 64-bit architectures. This causes a conflict between
7 asm-generic/int-l64.h:28:25: error: conflicting types for '__s64'
8 typedef __signed__ long __s64;
10 In file included from mmc.h:17:0,
12 asm-generic/int-ll64.h:29:44: note: previous declaration of '__s64' was
14 __extension__ typedef __signed__ long long __s64;
16 [Ryan: added include of linux/types.h because mmc/ioctl.h does not
17 include it in kernel version before 3.4]
19 Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
20 Signed-off-by: Ryan Barnett <rjbarnet@rockwellcollins.com>
23 1 files changed, 3 insertions(+), 1 deletions(-)
24 diff --git a/mmc.h b/mmc.h
25 index 9871d62..2d54ec5 100644
29 * Boston, MA 021110-1307, USA.
32 -#include <asm-generic/int-ll64.h>
33 +#include <linux/types.h>
34 #include <linux/mmc/ioctl.h>
36 +#ifndef _ASM_GENERIC_INT_L64_H
37 +#include <asm-generic/int-ll64.h>
40 #define CHECK(expr, msg, err_stmt) { if (expr) { fprintf(stderr, msg); err_stmt; } }