projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfb104c
)
tools headers: Add limits.h to access __WORDSIZE
author
Arnaldo Carvalho de Melo
<acme@redhat.com>
Tue, 20 Aug 2019 15:01:38 +0000
(12:01 -0300)
committer
Arnaldo Carvalho de Melo
<acme@redhat.com>
Tue, 20 Aug 2019 15:03:05 +0000
(12:03 -0300)
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>
tools/include/linux/bitops.h
patch
|
blob
|
history
diff --git
a/tools/include/linux/bitops.h
b/tools/include/linux/bitops.h
index 0b0ef3abc966e98c806bf7148d1d3f66fa096102..140c8362f1139a0b002e8c1a9aaaa98dd80f159c 100644
(file)
--- a/
tools/include/linux/bitops.h
+++ b/
tools/include/linux/bitops.h
@@
-3,6
+3,7
@@
#define _TOOLS_LINUX_BITOPS_H_
#include <asm/types.h>
+#include <limits.h>
#ifndef __WORDSIZE
#define __WORDSIZE (__SIZEOF_LONG__ * 8)
#endif