Skip to content

Commit 6e98bc3

Browse files
committed
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. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lkml.kernel.org/n/tip-5yfoed4rnsck2n3cwhm9mvth@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent cfb104c commit 6e98bc3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎tools/include/linux/bitops.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#define _TOOLS_LINUX_BITOPS_H_
44

55
#include <asm/types.h>
6+
#include <limits.h>
67
#ifndef __WORDSIZE
78
#define __WORDSIZE (__SIZEOF_LONG__ * 8)
89
#endif

0 commit comments

Comments
 (0)