Use FreeBSD macro definition for ElfW macro for compatibility. (#1037)

pull/1038/head
Yesudeep Mangalapilly 3 years ago committed by GitHub
parent a59b4daa07
commit 59672bec98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      absl/debugging/internal/elf_mem_image.h
  2. 5
      absl/debugging/internal/vdso_support.cc
  3. 4
      absl/debugging/symbolize_elf.inc

@ -40,6 +40,10 @@
#include <link.h> // for ElfW
#if defined(__FreeBSD__) && !defined(ElfW)
#define ElfW(x) __ElfN(x)
#endif
namespace absl {
ABSL_NAMESPACE_BEGIN
namespace debugging_internal {

@ -50,6 +50,11 @@
#define AT_SYSINFO_EHDR 33 // for crosstoolv10
#endif
#if defined(__FreeBSD__)
using Elf64_auxv_t = Elf64_Auxinfo;
using Elf32_auxv_t = Elf32_Auxinfo;
#endif
namespace absl {
ABSL_NAMESPACE_BEGIN
namespace debugging_internal {

@ -77,6 +77,10 @@
#include "absl/debugging/internal/vdso_support.h"
#include "absl/strings/string_view.h"
#if defined(__FreeBSD__) && !defined(ElfW)
#define ElfW(x) __ElfN(x)
#endif
namespace absl {
ABSL_NAMESPACE_BEGIN

Loading…
Cancel
Save