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>
This commit is contained in:
Wolfgang Denk
2010-06-12 00:19:46 +02:00
parent a2a649d73c
commit 65cd3fa81f
3 changed files with 11 additions and 0 deletions

9
include/errno.h Normal file
View File

@@ -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 */