diff options
author | David Coppa <dcoppa@openbsd.org> | 2013-06-21 09:13:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-06-21 12:27:40 (GMT) |
commit | 480e924daedee520d18c8a9c0b9823fef205b57a (patch) | |
tree | 854bc7b1ef667ea8939717b1e1431d1edbbc7654 /Source/cmELF.cxx | |
parent | 9f160c5b0a7e0f821ca4737638edbebf0ed398be (diff) | |
download | CMake-480e924daedee520d18c8a9c0b9823fef205b57a.zip CMake-480e924daedee520d18c8a9c0b9823fef205b57a.tar.gz CMake-480e924daedee520d18c8a9c0b9823fef205b57a.tar.bz2 |
OpenBSD: Enable ELF parsing and editing (#14241)
OpenBSD provides ELF ABI declarations in
#include <stdint.h>
#include <elf_abi.h>
Teach the platform check and cmELF implementation to use these.
Diffstat (limited to 'Source/cmELF.cxx')
-rw-r--r-- | Source/cmELF.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmELF.cxx b/Source/cmELF.cxx index 1158fc0..30de9a8 100644 --- a/Source/cmELF.cxx +++ b/Source/cmELF.cxx @@ -19,7 +19,12 @@ #include <cmsys/CPU.h> // Include the ELF format information system header. -#include <elf.h> +#if defined(__OpenBSD__) +# include <stdint.h> +# include <elf_abi.h> +#else +# include <elf.h> +#endif #if defined(__sun) # include <sys/link.h> // For dynamic section information #endif |