I have a problem like i need to include a different header files depending on the linux kernel in a .cpp file. I have to check the linux kernel version and include the headerfile depending on that kernel. How can I do that?
I have ARCH variable in Makefile which gives me exactly the kernel version, can i make use of that?