Messages in this thread | | | Date | Wed, 4 Mar 1998 14:02:46 -0500 | From | "Theodore Y. Ts'o" <> | Subject | Re: Linux version code |
| |
Date: Wed, 4 Mar 1998 18:00:53 +0100 From: Guest <guest@manjak.knm.org.pl>
Sorry for the silly question, but how can I calculate LINUX_VERSION_CODE ?
If the Linux version number is X.Y.Z, then
LINUX_VERSION_CODE is X*65536 + Y*256 + Z
So for example, the Linux version code for 2.1.80 is
2 * 65536 + 1 * 256 + 80 = 131408
- Ted
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu
| |