Adds checks for posix features not present in centos 5
This is probably better done with weak symbols or a check in configure and cmake rather than hard-coding this stuff in the C pre-processor.
This file isn't Linux only, so the concerns expressed by Labath are valid here as well. (The same thing is true of other inclusions of <linux/version.h>.)
This bug was fixed in 2007, over 8 years ago ... at what point do we stop carrying around this baggage?
How about moving PIPE2_SUPPORTED to include/lldb/Host/*/Config.h? It could be renamed to LLDB_CONFIG_PIPE2_SUPPORTED. Feel free to include in the Linux configuration headers needed to detect Linux version.
Few defines aren't much of entanglement. RHEL5 is still supported upstream (till 2017).
If that is ok by the coding standards im happy to change it to that
If you want to provide code that does that, im happy to change it.
I dont have other OS's to build on so not sure. Think @krytarowski comment below is the way to go.