diff options
| author | Kamil Rytarowski <n54@gmx.com> | 2016-02-06 18:19:29 +0000 |
|---|---|---|
| committer | Kamil Rytarowski <n54@gmx.com> | 2016-02-06 18:19:29 +0000 |
| commit | c94bd048027b2834ddcc4f13e7afff822fd973bf (patch) | |
| tree | 0ddf9b72099146a4f36d4c0f5c97d568c0b1aa0f /libunwind/src/AddressSpace.hpp | |
| parent | 83e04913e5081d78b4ab42ce92c202c2505d6a7d (diff) | |
| download | bcm5719-llvm-c94bd048027b2834ddcc4f13e7afff822fd973bf.tar.gz bcm5719-llvm-c94bd048027b2834ddcc4f13e7afff822fd973bf.zip | |
Introduce NetBSD support
Current FreeBSD and NetBSD code is compatible.
llvm-svn: 260001
Diffstat (limited to 'libunwind/src/AddressSpace.hpp')
| -rw-r--r-- | libunwind/src/AddressSpace.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libunwind/src/AddressSpace.hpp b/libunwind/src/AddressSpace.hpp index 73013c73ff7..da1b6a43e49 100644 --- a/libunwind/src/AddressSpace.hpp +++ b/libunwind/src/AddressSpace.hpp @@ -35,7 +35,7 @@ namespace libunwind { #include "Registers.hpp" #if _LIBUNWIND_ARM_EHABI -#if defined(__FreeBSD__) +#if defined(__FreeBSD__) || defined(__NetBSD__) typedef void *_Unwind_Ptr; @@ -61,7 +61,8 @@ extern EHTEntry __exidx_end; #endif // !defined(_LIBUNWIND_IS_BAREMETAL) #endif // _LIBUNWIND_ARM_EHABI -#if defined(__CloudABI__) || defined(__FreeBSD__) || defined(__linux__) +#if defined(__CloudABI__) || defined(__FreeBSD__) || defined(__linux__) || \ + defined(__NetBSD__) #if _LIBUNWIND_SUPPORT_DWARF_UNWIND && _LIBUNWIND_SUPPORT_DWARF_INDEX #include <link.h> // Macro for machine-independent access to the ELF program headers. This |

