ports/devel/libunwind/files/unwind.h
Tijl Coosemans 975a5c1057 devel/libunwind: use base system unwind.h
- Add --disable-cxx-exceptions so libunwind does not implement the
  _Unwind_* API and does not use its internal unwind.h.  The base
  system libgcc_s provides this API.  This was already the upstream
  default for most architectures.
- Add --disable-unwind-header to prevent installation of unwind.h.
  Instead, install an unwind.h that forwards to the base system
  unwind.h, but not on FreeBSD 14 where all implementations of
  unwind.h (base, lang/gcc*, and devel/llvm*) are compatible.

PR:		263370
Approved by:	sunpoet
2022-04-27 18:53:02 +02:00

26 lines
458 B
C

#ifndef _LIBUNWIND_UNWIND_H
#define _LIBUNWIND_UNWIND_H
#if __has_include("/usr/include/unwind.h")
#include "/usr/include/unwind.h"
#elif __has_include("/usr/include/c++/v1/unwind.h")
#ifdef __cplusplus
extern "C" {
#endif
#if defined(__arm__) && !defined(__ARM_DWARF_EH__)
#include "/usr/include/c++/v1/unwind-arm.h"
#else
#include "/usr/include/c++/v1/unwind-itanium.h"
#endif
#ifdef __cplusplus
}
#endif
#else
#include_next <unwind.h>
#endif
#endif