Commit 59672bec by Yesudeep Mangalapilly Committed by GitHub

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

parent a59b4daa
...@@ -40,6 +40,10 @@ ...@@ -40,6 +40,10 @@
#include <link.h> // for ElfW #include <link.h> // for ElfW
#if defined(__FreeBSD__) && !defined(ElfW)
#define ElfW(x) __ElfN(x)
#endif
namespace absl { namespace absl {
ABSL_NAMESPACE_BEGIN ABSL_NAMESPACE_BEGIN
namespace debugging_internal { namespace debugging_internal {
......
...@@ -50,6 +50,11 @@ ...@@ -50,6 +50,11 @@
#define AT_SYSINFO_EHDR 33 // for crosstoolv10 #define AT_SYSINFO_EHDR 33 // for crosstoolv10
#endif #endif
#if defined(__FreeBSD__)
using Elf64_auxv_t = Elf64_Auxinfo;
using Elf32_auxv_t = Elf32_Auxinfo;
#endif
namespace absl { namespace absl {
ABSL_NAMESPACE_BEGIN ABSL_NAMESPACE_BEGIN
namespace debugging_internal { namespace debugging_internal {
......
...@@ -77,6 +77,10 @@ ...@@ -77,6 +77,10 @@
#include "absl/debugging/internal/vdso_support.h" #include "absl/debugging/internal/vdso_support.h"
#include "absl/strings/string_view.h" #include "absl/strings/string_view.h"
#if defined(__FreeBSD__) && !defined(ElfW)
#define ElfW(x) __ElfN(x)
#endif
namespace absl { namespace absl {
ABSL_NAMESPACE_BEGIN ABSL_NAMESPACE_BEGIN
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment