lkml.org 
[lkml]   [2000]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectPATCH: linux-2.4.0-test12pre8/include/linux/module.h breaks sysklogd compilation

linux-2.4.0test12pre8/include/linux/module.h contains some
kernel-specific declarations that now reference struct list_head, which
which is only defined when __KERNEL__ is set. This causes sysklogd
and probably any other user level program that needs to include
<linux/module.h> to fail to compile.

The following patch brackets the (unused) offending declarations
in #ifdef __KERNEL__...#endif.

--
Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 104
adam@yggdrasil.com \ / San Jose, California 95129-1034
+1 408 261-6630 | g g d r a s i l United States of America
fax +1 408 261-6631 "Free Software For The Rest Of Us."
Index: linux/include/linux/module.h
===================================================================
RCS file: /usr/src.repository/repository/linux/include/linux/module.h,v
retrieving revision 1.2
diff -u -r1.2 module.h
--- linux/include/linux/module.h 2000/12/04 11:57:16 1.2
+++ linux/include/linux/module.h 2000/12/11 22:54:20
@@ -168,6 +168,7 @@
* Keith Owens <kaos@ocs.com.au> 28 Oct 2000.
*/

+#ifdef __KERNEL__
#define HAVE_INTER_MODULE
extern void inter_module_register(const char *, struct module *, const void *);
extern void inter_module_unregister(const char *);
@@ -183,6 +184,7 @@
};

extern int try_inc_mod_count(struct module *mod);
+#endif

#if defined(MODULE) && !defined(__GENKSYMS__)
\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.038 / U:30.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site