Comment 4 for bug 1327619

Revision history for this message
Hauke (hauke-m) wrote :

I saw that, but I am unable to parse this in the C preprocessor.

I could do something like this:

#if UTS_RELEASE == "3.15.0-5-generic"
/* some code */
#else
/some code */
#endif

but that does not scale.

Having something like:

#define UTS_RELEASE_MINOR 5

would help, the rest is already in include/generated/uapi/linux/version.h