Commit 65cd3fa81ff48cd44bcb3d9baf646dade15b9131

Authored by Wolfgang Denk
1 parent a2a649d73c

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>

Showing 3 changed files with 11 additions and 0 deletions Side-by-side Diff

  1 +#ifndef _ERRNO_H
  2 +
  3 +#include <asm-generic/errno.h>
  4 +
  5 +extern int errno;
  6 +
  7 +#define __set_errno(val) do { errno = val; } while (0)
  8 +
  9 +#endif /* _ERRNO_H */
... ... @@ -37,6 +37,7 @@
37 37 COBJS-y += ctype.o
38 38 COBJS-y += display_options.o
39 39 COBJS-y += div64.o
  40 +COBJS-y += errno.o
40 41 COBJS-$(CONFIG_GZIP) += gunzip.o
41 42 COBJS-$(CONFIG_LMB) += lmb.o
42 43 COBJS-y += ldiv.o
  1 +int errno = 0;