Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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
+1
tools/include/linux/bitops.h
··· 3 3 #define _TOOLS_LINUX_BITOPS_H_ 4 4 5 5 #include <asm/types.h> 6 + #include <limits.h> 6 7 #ifndef __WORDSIZE 7 8 #define __WORDSIZE (__SIZEOF_LONG__ * 8) 8 9 #endif