[PATCH] include/platform.h: Define KERNEL_VERSION unconditionally

Robert P. J. Day rpjday at mindspring.com
Wed May 31 09:13:57 UTC 2006


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 at 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



More information about the busybox mailing list