libuv bundled with CMake requires Linux 2.6.32
CMake fails to compile for Linux kernels older than 2.6.27 due to its use of libuv, which itself uses epoll_create1, which wasn't introduced to the kernel until 2.6.27.
My use case unfortunately requires compiling on 2.6.26.
I can get GNU's current dev tools (gcc, g++, make, etc) to compile on this kernel... it'd be nice to get CMake to also compile on it, if possible.
I can get this to compile by testing the linux kernel version in linux-core.c and avoiding the compiling of epoll_create1 in those circumstances (appropriately failing with fd = -1; errno = ENOSYS; to make the code after epoll_create1 fail appropriately).
Edited by Brad King