linux-2.1.93: <linux/binfmt.h> needs an "#ifdef __KERNEL__" for some declarations

Adam J. Richter (adam@yggdrasil.com)
Wed, 8 Apr 1998 15:31:12 -0700


The following patch puts "#ifdef __KERNEL__" around some references
to data types specific to the kernel. This is necessary because libc5
references some kernel include files that eventually pull in binfmts.h.
(We use libc6 for our builds, but we do build libc5 for backward
compatability.)

Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 205
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."
----------------------------CUT HERE---------------------------------
--- /tmp/linux-2.1.93/include/linux/binfmts.h Mon Apr 6 11:50:34 1998
+++ linux/include/linux/binfmts.h Tue Apr 7 20:04:55 1998
@@ -11,6 +11,7 @@
*/
#define MAX_ARG_PAGES 32

+#ifdef __KERNEL__
/*
* This structure is used to hold the arguments that are used when loading binaries.
*/
@@ -69,5 +70,6 @@

/* this eventually goes away */
#define change_ldt(a,b) setup_arg_pages(a,b)
+#endif /* __KERNEL__ */

#endif

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu