common: Always include errno.h in common.h
authorJoe Hershberger <joe.hershberger@ni.com>
Mon, 4 Apr 2016 09:07:33 +0000 (04:07 -0500)
committerJoe 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

index f9f4605dba6458fe4984a7c4b7aeef11d82c65d7..3feaae641c797d5802319969fa309298e4ff2b90 100644 (file)
@@ -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>