mmc-utils: Fix 64-bit values redefinition
PATCH 1/1 mmc-utils: Fix 64-bit values redefinition
Some toolchains include asm-generic/int-l64.h from their asm/types.h file for certain 64-bit architectures. This causes a conflict between types like this one:
asm-generic/int-l64.h:28:25: error: conflicting types for '__s64'
typedef __signed__ long __s64; ^ In file included from mmc.h:17:0, from mmc_cmds.c:30:
asm-generic/int-ll64.h:29:44: note: previous declaration of '__s64' was here
__extension__ typedef __signed__ long long __s64;
Signed-off-by Vicente Olivert Riera <[email protected]>
--- mmc.h | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
mmc.h +3 -1
@@ -14,9 +14,11 @@* Boston, MA 021110-1307, USA. */ -#include <asm-generic/int-ll64.h> #include <linux/mmc/ioctl.h> #include <stdio.h> +#ifndef _ASM_GENERIC_INT_L64_H +#include <asm-generic/int-ll64.h> +#endif #define CHECK (expr, msg, err_stmt) { if (expr) { fprintf(stderr, msg); err_stmt; } }
Signature · 1 line
1.7.1