summaryrefslogtreecommitdiff
path: root/recipes/linux-libc-headers/linux-libc-headers-2.6.18+2.6.19-rc1/linux-err.patch
diff options
context:
space:
mode:
authorLukas Gorris <lukas.gorris@gmail.com>2009-03-30 21:20:14 +0200
committerLukas Gorris <lukas.gorris@gmail.com>2009-03-30 21:20:14 +0200
commita93dfebb9e7a34ffba9b1ae5e8e496dfab4c3c43 (patch)
tree6c38a4617c92398269e6603a0509fc3006811368 /recipes/linux-libc-headers/linux-libc-headers-2.6.18+2.6.19-rc1/linux-err.patch
parent4255898da29e7e0c521d064afedbc4075b3e8155 (diff)
parentd7fdcef3d8c8b80926d579c2db179b594429cebe (diff)
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/linux-libc-headers/linux-libc-headers-2.6.18+2.6.19-rc1/linux-err.patch')
-rw-r--r--recipes/linux-libc-headers/linux-libc-headers-2.6.18+2.6.19-rc1/linux-err.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/recipes/linux-libc-headers/linux-libc-headers-2.6.18+2.6.19-rc1/linux-err.patch b/recipes/linux-libc-headers/linux-libc-headers-2.6.18+2.6.19-rc1/linux-err.patch
new file mode 100644
index 0000000000..39a8e8a2f5
--- /dev/null
+++ b/recipes/linux-libc-headers/linux-libc-headers-2.6.18+2.6.19-rc1/linux-err.patch
@@ -0,0 +1,23 @@
+# Add linux/err.h for MAX_ERRNO definition, needed by util-linux mount
+
+Index: linux-2.6.19-rc1/usr/include/linux/err.h
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ linux-2.6.19-rc1/usr/include/linux/err.h 2006-10-05 10:55:17.000000000 +0200
+@@ -0,0 +1,16 @@
++#ifndef _LINUX_ERR_H
++#define _LINUX_ERR_H
++
++#include <asm/errno.h>
++
++/*
++ * Kernel pointers have redundant information, so we can use a
++ * scheme where we can return either an error code or a dentry
++ * pointer with the same return value.
++ *
++ * This should be a per-architecture thing, to allow different
++ * error and pointer decisions.
++ */
++#define MAX_ERRNO 4095
++
++#endif /* _LINUX_ERR_H */