From 65cd3fa81ff48cd44bcb3d9baf646dade15b9131 Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Sat, 12 Jun 2010 00:19:46 +0200 Subject: Add basic errno support. Needed for hash table support; probably useful in a lot of other places as well. Signed-off-by: Wolfgang Denk --- lib/Makefile | 1 + lib/errno.c | 1 + 2 files changed, 2 insertions(+) create mode 100644 lib/errno.c (limited to 'lib') diff --git a/lib/Makefile b/lib/Makefile index c45f07ca12..c26536d0b3 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -37,6 +37,7 @@ COBJS-y += crc32.o COBJS-y += ctype.o COBJS-y += display_options.o COBJS-y += div64.o +COBJS-y += errno.o COBJS-$(CONFIG_GZIP) += gunzip.o COBJS-$(CONFIG_LMB) += lmb.o COBJS-y += ldiv.o diff --git a/lib/errno.c b/lib/errno.c new file mode 100644 index 0000000000..8330a8fd14 --- /dev/null +++ b/lib/errno.c @@ -0,0 +1 @@ +int errno = 0; -- cgit v1.2.3