lkml.org 
[lkml]   [1999]   [Jun]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: stable kernel macro?
Date
From
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/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.019 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site