[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: [PATCH] include/platform.h: Define KERNEL_VERSION
From: "Robert P. J. Day" <rpjday () mindspring ! com>
Date: 2006-05-31 9:13:57
Message-ID: Pine.LNX.4.64.0605310513040.3107 () localhost ! localdomain
[Download RAW message or body]
On Tue, 30 May 2006, Shaun Jackman wrote:
> KERNEL_VERSION is defined conditionally on __linux__, but it's used
> throughout without any qualification. It's safest to simply define
> it unconditionally.
>
> Cheers,
> Shaun
>
> 2006-05-30 Shaun Jackman <sjackman@gmail.com>
>
> * include/platform.h: Define KERNEL_VERSION unconditionally.
>
> --- include/platform.h 5589450f907ea20d33675a33b2405ff5dc5df18d
> +++ include/platform.h ebe1c690cb076bbb840ae834641d4793d2ba4160
> @@ -157,9 +157,7 @@
> #endif /* ___digital__ && __unix__ */
>
> /*----- Kernel versioning ------------------------------------*/
> -#ifdef __linux__
> #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
> -#endif
or conditionally define it to be something generically meaningless if
the OS is *not* linux?
rday
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic