Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: Patching the Kernel (Was: Re: LX164 Alpha 533Mhz)
@ 1998-01-29 15:37 Tommy Cheung
  0 siblings, 0 replies; 3+ messages in thread
From: Tommy Cheung @ 1998-01-29 15:37 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-01-29 15:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <Pine.LNX.3.96.980129131130.23800A-100000@bartlet.df.lth.se>
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
1998-01-29 15:37 Tommy Cheung

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox