From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <67e5fca046798fd9d7d991e2608febff.axp-list@archive.invalid> X-Archive-Original-Message-ID: <34D0A0B5.5B98@bob.usuf2.usuhs.mil> Date: Thu, 29 Jan 1998 23:37:30 +0800 From: Tommy Cheung Subject: Re: Patching the Kernel (Was: Re: LX164 Alpha 533Mhz) My understanding of C language is limited, but what Jay is trying to explain is that the headers might be different from the function it specifics when compling/linking. Sometimes I think because of that you see warnings and other things. It's like mixing the codes without knowing whether they are compatible or not. (Means , it's plain luck :-) ). Tommy T&S Assoicates Dan Weeks wrote: > > > So, if when compiling the kernel we get the -D__KERNEL__ flag why can't > the headers be set up to have one set of values for kernel compiles > and another set for regular compiles like so: > > example------------------------------------------ > > /* blah.h > * blah blah, blah blah blah blah > * blah blort blat blah > */ > > #ifdef __KERNEL__ > /* place kernel modified header stuff here */ > #else > /* place stuff for normal compiles here */ > #endif > > end----------------------------------------------- > > or will this break. I am guessing (and most likley making a fool of > myself) that this will work and if it does it would mean that you > could build the kernel and other apps with the same include files and > not have to worry if one set or the other is out of date or not. > > -danimal > > -- > Dan Weeks > Blue Sky|VIFX http://www.blueskystudios.com/ http://www.vifx.com/ > Harrison, New York 914/381.8400 - Los Angeles, California 310/822.8872 > Linux: The Choice of a GNU Generation > > -- > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com