Re: stable kernel macro?

Brandon S. Allbery KF8NH (allbery@kf8nh.apk.net)
Sat, 05 Jun 1999 20:51:33 -0400


In message <Pine.LNX.4.10.9906060045270.11179-100000@ps.cus.umist.ac.uk>, Riley
Williams writes:
+-----
| > Is there a generic way to detect, via the C pre-processor,
| > whether the kernel is a stable or experimental series?
|
| I don't know about "via the C pre-processor", but you could try one of
| the following bash commands:
+--->8

#ifdef LINUX_VERSION_CODE
#define LINUX_STABLE_KERNEL (!(LINUX_VERSION_CODE & 0x000100))
#else
#error kernel is too old
#endif

-- 
brandon s. allbery	[os/2][linux][solaris][japh]	 allbery@kf8nh.apk.net
system administrator	     [WAY too many hats]	   allbery@ece.cmu.edu
carnegie mellon / electrical and computer engineering			 KF8NH
     We are Linux. Resistance is an indication that you missed the point.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/