From 3511cb2028b5ef2ddf233fac47296d24560ec5b7 Mon Sep 17 00:00:00 2001 From: Baptiste Jonglez Date: Thu, 15 Oct 2020 17:14:10 +0200 Subject: [PATCH] Add architecture support for ppc64 The right macro was found with "cpp -dM" and tested manually, I have no idea why it is uppercase while all other arch macros are lowercase... Possibly something related to AIX compatibility. --- libmetrics/linux/metrics.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libmetrics/linux/metrics.c b/libmetrics/linux/metrics.c index 456abe339..b4a4c2bc1 100644 --- a/libmetrics/linux/metrics.c +++ b/libmetrics/linux/metrics.c @@ -633,6 +633,8 @@ machine_type_func ( void ) snprintf(val.str, MAX_G_STRING_SIZE, "hppa"); #elif __s390__ snprintf(val.str, MAX_G_STRING_SIZE, "s390"); +#elif __PPC64__ + snprintf(val.str, MAX_G_STRING_SIZE, "ppc64"); #else snprintf(val.str, MAX_G_STRING_SIZE, "unknown"); #endif