projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8009be
)
common: Always include errno.h in common.h
author
Joe Hershberger
<joe.hershberger@ni.com>
Mon, 4 Apr 2016 09:07:33 +0000
(
04:07
-0500)
committer
Joe Hershberger
<joe.hershberger@ni.com>
Wed, 6 Jul 2016 15:44:56 +0000
(10:44 -0500)
We want people using errnos for errors instead of -1, so make it easy
by always including the definition of all the errnos.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
include/common.h
patch
|
blob
|
history
diff --git
a/include/common.h
b/include/common.h
index f9f4605dba6458fe4984a7c4b7aeef11d82c65d7..3feaae641c797d5802319969fa309298e4ff2b90 100644
(file)
--- a/
include/common.h
+++ b/
include/common.h
@@
-16,6
+16,7
@@
typedef volatile unsigned short vu_short;
typedef volatile unsigned char vu_char;
#include <config.h>
+#include <errno.h>
#include <asm-offsets.h>
#include <linux/bitops.h>
#include <linux/types.h>