Re: PATCH: linux-2.4.0-test12pre8/include/linux/module.h breaks sysklogd compilation

2000-12-12 Thread Frank van Maarseveen
On Mon, Dec 11, 2000 at 07:53:05PM -0600, Peter Samuelson wrote: > > [Mohammad A. Haque] > > Wasn't there discussion that user space apps shouldn't include kernel > > headers? > > Oh, it's been discussed, many times. Here is my executive summary of > why nobody needs to use kernel headers in us

Re: PATCH: linux-2.4.0-test12pre8/include/linux/module.h breaks sysklogd compilation

2000-12-11 Thread Peter Samuelson
[Mohammad A. Haque] > Wasn't there discussion that user space apps shouldn't include kernel > headers? Oh, it's been discussed, many times. Here is my executive summary of why nobody needs to use kernel headers in userspace programs, *EVER*: Q: I want to #include but I get compile errors, ple

Re: PATCH: linux-2.4.0-test12pre8/include/linux/module.h breaks sysklogd compilation

2000-12-11 Thread Cort Dougan
} User space applications _must_ not include kernel headers. Even } modutils does not include linux/module.h, it has its own portable } (kernels 2.0 - 2.4) version. There are cases where a user-program _must_ include kernel headers. Some glibc versions have incorrect values for MCL_* and asm/mm

Re: PATCH: linux-2.4.0-test12pre8/include/linux/module.h breaks sysklogd compilation

2000-12-11 Thread Mohammad A. Haque
Wasn't there discussion that user space apps shouldn't include kernel headers? "Adam J. Richter" wrote: > > 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.

Re: PATCH: linux-2.4.0-test12pre8/include/linux/module.h breaks sysklogd compilation

2000-12-11 Thread Keith Owens
On Mon, 11 Dec 2000 14:59:01 -0800, "Adam J. Richter" <[EMAIL PROTECTED]> wrote: > 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 pr

PATCH: linux-2.4.0-test12pre8/include/linux/module.h breaks sysklogd compilation

2000-12-11 Thread Adam J. Richter
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 to fail to compile.