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

Shaun Jackman sjackman at gmail.com
Tue May 30 23:39:27 UTC 2006


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

 /* ---- miscellaneous --------------------------------------- */
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: busybox-kernel-version.diff
Url: http://lists.busybox.net/pipermail/busybox/attachments/20060530/dab43d33/attachment.diff 


More information about the busybox mailing list