Adds checks for posix features not present in centos 5
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
Thanks for the patch. Looks good, but we need to make sure things continue to work on non-linux systems...
tools/lldb/source/Host/common/File.cpp | ||
---|---|---|
301 | This needs to evaluate to true on non-linux systems. |
tools/lldb/source/Host/common/File.cpp | ||
---|---|---|
301 | NetBSD: /usr/include/fcntl.h:#define O_CLOEXEC 0x00400000 /* set close on exec */ |
tools/lldb/source/Host/linux/HostThreadLinux.cpp | ||
---|---|---|
33 | 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. | |
tools/lldb/source/Host/posix/PipePosix.cpp | ||
32 | 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>.) | |
tools/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp | ||
72 | This bug was fixed in 2007, over 8 years ago ... at what point do we stop carrying around this baggage? |
tools/lldb/source/Host/posix/PipePosix.cpp | ||
---|---|---|
43 | 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. |
tools/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp | ||
---|---|---|
72 | Few defines aren't much of entanglement. RHEL5 is still supported upstream (till 2017). https://en.wikipedia.org/wiki/Red_Hat_Enterprise_Linux#Product_life_cycle |
tools/lldb/source/Host/common/File.cpp | ||
---|---|---|
301 | If that is ok by the coding standards im happy to change it to that | |
tools/lldb/source/Host/linux/HostThreadLinux.cpp | ||
33 | If you want to provide code that does that, im happy to change it. | |
tools/lldb/source/Host/posix/PipePosix.cpp | ||
32 | I dont have other OS's to build on so not sure. Think @krytarowski comment below is the way to go. | |
254 | :( |
This needs to evaluate to true on non-linux systems.
Would #ifdef O_CLOEXEC work for you ?