--=_courier-19511-1042466331-0001-2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mime-Autoconverted: from 8bit to 7bit by courier 0.39
Hi,
here is a simple patch to export the errno-symbol from the /lib/errno.c file.
This solves the problem with the soundcore module and works perfectly for
me...
Thomas Schlichter
P.S.: This patch is made against the 2.5.56 tree
--=_courier-19511-1042466331-0001-2
Content-Type: text/x-diff; charset=us-ascii; name="errno_patch.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="errno_patch.diff"
diff -urP linux-2.5.56/lib/Makefile linux-2.5.56_patched/lib/Makefile
--- linux-2.5.56/lib/Makefile Fri Jan 10 21:11:20 2003
+++ linux-2.5.56_patched/lib/Makefile Mon Jan 13 13:15:41 2003
@@ -9,7 +9,7 @@
L_TARGET := lib.a
export-objs := cmdline.o dec_and_lock.o rwsem-spinlock.o rwsem.o \
- crc32.o rbtree.o radix-tree.o kobject.o
+ crc32.o rbtree.o radix-tree.o kobject.o errno.o
obj-y := errno.o ctype.o string.o vsprintf.o brlock.o cmdline.o \
bust_spinlocks.o rbtree.o radix-tree.o dump_stack.o \
diff -urP linux-2.5.56/lib/errno.c linux-2.5.56_patched/lib/errno.c
--- linux-2.5.56/lib/errno.c Fri Jan 10 21:11:40 2003
+++ linux-2.5.56_patched/lib/errno.c Mon Jan 13 13:17:21 2003
@@ -4,4 +4,8 @@
* Copyright (C) 1991, 1992 Linus Torvalds
*/
+#include <linux/module.h>
+
int errno;
+
+EXPORT_SYMBOL(errno);
--=_courier-19511-1042466331-0001-2--