[PATCH 1/2] Fix PowerPC checks for __NR_perf_counter_open.
- From: Michel Dänzer <michel daenzer net>
- To: sysprof-list gnome org
- Subject: [PATCH 1/2] Fix PowerPC checks for __NR_perf_counter_open.
- Date: Sat, 27 Aug 2011 20:04:44 +0200
__ppc__ isn't defined here on Debian powerpc. Grepping through the headers
installed in /usr/include, there are a few references to __ppc__ and
__ppc64__, but I suspect they're for other OSs.
Signed-off-by: Michel Dänzer <michel daenzer net>
---
collector.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/collector.c b/collector.c
index b28964f..fe16967 100644
--- a/collector.c
+++ b/collector.c
@@ -175,7 +175,7 @@ sysprof_perf_counter_open (struct perf_counter_attr *attr,
#define __NR_perf_counter_open 337
#elif defined(__hppa__)
#define __NR_perf_counter_open 318
-#elif defined(__ppc__) || defined(__ppc64__)
+#elif defined(__powerpc__) || defined(__powerpc64__)
#define __NR_perf_counter_open 319
#elif defined(__s390__)
#define __NR_perf_counter_open 331
--
1.7.5.4
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]