From 130ba3ade8b9bffacb278b7e3b968224e0919e31 Mon Sep 17 00:00:00 2001 From: Christopher Li Date: Mon, 30 Jul 2012 11:20:38 +0300 Subject: [PATCH] Fix a bug with variables named "x86_64". The code here is equivalent to adding a "#define x86_64 1". But some kernel code uses variables named "x86_64" and it breaks the build. Also GCC doesn't handle x86_64 this way. I pulled this patch from the mailing list, and added a changelog because it hasn't been applied to Chris's tree yet. Signed-off-by: Dan Carpenter --- lib.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib.c b/lib.c index cd93263d..100d4c33 100644 --- a/lib.c +++ b/lib.c @@ -372,8 +372,6 @@ static void handle_arch_m64_finalize(void) size_t_ctype = &ulong_ctype; ssize_t_ctype = &long_ctype; #ifdef __x86_64__ - add_pre_buffer("#weak_define x86_64 1\n"); - add_pre_buffer("#weak_define __x86_64 1\n"); add_pre_buffer("#weak_define __x86_64__ 1\n"); #endif } -- 2.11.4.GIT