From 994dfb3bc62ebb618832ddfc3e875f573100e647 Mon Sep 17 00:00:00 2001 From: Irina Tirdea Date: Tue, 11 Sep 2012 01:15:00 +0300 Subject: [PATCH] --- yaml --- r: 323803 b: refs/heads/master c: 3f34f6c0233ae055b592e8f8da23d873b82070bb h: refs/heads/master i: 323801: 9c5838fb4c36a55c79fcb70f3f4c453b8942d0de 323799: 29fd0945464920e51eae765baa7d74cfe538239e v: v3 --- [refs] | 2 +- trunk/tools/perf/util/include/linux/bitops.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 6b764ac84046..39b2fc1be504 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 86d5a70c1eeb3d35bcadc94753fd9651df8835a8 +refs/heads/master: 3f34f6c0233ae055b592e8f8da23d873b82070bb diff --git a/trunk/tools/perf/util/include/linux/bitops.h b/trunk/tools/perf/util/include/linux/bitops.h index 587a230d2075..a55d8cf083c9 100644 --- a/trunk/tools/perf/util/include/linux/bitops.h +++ b/trunk/tools/perf/util/include/linux/bitops.h @@ -5,6 +5,10 @@ #include #include +#ifndef __WORDSIZE +#define __WORDSIZE (__SIZEOF_LONG__ * 8) +#endif + #define BITS_PER_LONG __WORDSIZE #define BITS_PER_BYTE 8 #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long))