From: Tommy Cheung <cyber@technologist.com>
Subject: Re: Patching the Kernel (Was: Re: LX164 Alpha 533Mhz)
Date: Thu, 29 Jan 1998 23:37:30 +0800 [thread overview]
Message-ID: <67e5fca046798fd9d7d991e2608febff.axp-list@archive.invalid> (raw)
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 <danimal@blueskystudios.com>
> 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
next reply other threads:[~1998-01-29 15:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-01-29 15:37 Tommy Cheung [this message]
-- strict thread matches above, loose matches on Subject: below --
1998-01-29 5:04 LX164 Alpha 533Mhz Jay.Estabrook
1998-01-29 15:18 ` Patching the Kernel (Was: Re: LX164 Alpha 533Mhz) Dan Weeks
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox