commit | 65cd3fa81ff48cd44bcb3d9baf646dade15b9131 | [log] [tgz] |
---|---|---|
author | Wolfgang Denk <wd@denx.de> | Sat Jun 12 00:19:46 2010 +0200 |
committer | Wolfgang Denk <wd@denx.de> | Sun Sep 19 19:29:47 2010 +0200 |
tree | 93b87979aa8ca6b200923a1f18eabc4381e313d8 | |
parent | a2a649d73cc24c306b66cd53d939d1776e6f4e41 [diff] [blame] |
Add basic errno support. Needed for hash table support; probably useful in a lot of other places as well. Signed-off-by: Wolfgang Denk <wd@denx.de>
diff --git a/include/errno.h b/include/errno.h new file mode 100644 index 0000000..e24a33b --- /dev/null +++ b/include/errno.h
@@ -0,0 +1,9 @@ +#ifndef _ERRNO_H + +#include <asm-generic/errno.h> + +extern int errno; + +#define __set_errno(val) do { errno = val; } while (0) + +#endif /* _ERRNO_H */