lkml.org 
[lkml]   [2003]   [Jan]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subjectpatch for errno-issue (with soundcore)
Date
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

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);
\
 
 \ /
  Last update: 2005-03-22 13:32    [W:0.038 / U:2.652 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site