[systemd-devel] [PATCH] virt: Use __x86_64__ macro instead of __amd_64__

Ozan Çağlayan ozan at pardus.org.tr
Fri Dec 16 03:02:50 PST 2011


It seems that both are defined but seen that __x86_64__ is used
in the whole systemd tree, replace to avoid confusion.
---
 src/virt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/virt.c b/src/virt.c
index 380fabd..d866d07 100644
--- a/src/virt.c
+++ b/src/virt.c
@@ -72,7 +72,7 @@ int detect_vm(const char **id) {
 #if defined (__i386__)
 #define REG_a "eax"
 #define REG_b "ebx"
-#elif defined (__amd64__)
+#elif defined (__x86_64__)
 #define REG_a "rax"
 #define REG_b "rbx"
 #endif
-- 
1.7.7.1



More information about the systemd-devel mailing list