Skip to contentSkip to conversation

tools headers: Add limits.h to access __WORDSIZE

tip: perf/core tip-bot2 for Arnaldo Carvalho de Melo 1 participant 1 message Aug 23, 2019 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

tip-bot2 for Arnaldo Carvalho de Melo

author merge bot Applied
#1 lore raw

The following commit has been merged into the perf/core branch of tip:

Commit-ID:     6e98bc349ea4219e21785d85809b10bd49e722df
Gitweb:        https://git.kernel.org/tip/6e98bc349ea4219e21785d85809b10bd49e722df
Author:        Arnaldo Carvalho de Melo <[email protected]>
AuthorDate:    Tue, 20 Aug 2019 12:01:38 -03:00
Committer:     Arnaldo Carvalho de Melo <[email protected]>
CommitterDate: Tue, 20 Aug 2019 12:03:05 -03:00

tools headers: Add limits.h to access __WORDSIZE

We need to make sure limits.h is included before checking if we can use __WORDSIZE, do it.

---
 tools/include/linux/bitops.h | 1 +
 1 file changed, 1 insertion(+)
tools/include/linux/bitops.h +1 -0
index 0b0ef3a..140c836 100644
@@ -3,6 +3,7 @@
 #define _TOOLS_LINUX_BITOPS_H_
 
 #include <asm/types.h>
+#include <limits.h>
 #ifndef __WORDSIZE
 #define __WORDSIZE (__SIZEOF_LONG__ * 8)
 #endif