about summary refs log tree commit diff
path: root/absl/debugging
diff options
context:
space:
mode:
authorDaniel Ylitalo <daniel@ylitalo.io>2017-12-13T20·02+0100
committerDerek Mauro <761129+derekmauro@users.noreply.github.com>2017-12-13T20·02-0500
commit5fe41affbaab5b9ad4876a6295c78f21a86d862d (patch)
treed6cb31cf0deb80dc295e6fae0b287d482ac4a947 /absl/debugging
parent04edad3801ec0b1091df9157b879d8f6a50c5036 (diff)
FreeBSD compability (#57)
Diffstat (limited to 'absl/debugging')
-rw-r--r--absl/debugging/internal/stacktrace_config.h4
-rw-r--r--absl/debugging/internal/stacktrace_powerpc-inl.inc3
2 files changed, 4 insertions, 3 deletions
diff --git a/absl/debugging/internal/stacktrace_config.h b/absl/debugging/internal/stacktrace_config.h
index 57f0b0f2a6e2..9bd2a2ab9e72 100644
--- a/absl/debugging/internal/stacktrace_config.h
+++ b/absl/debugging/internal/stacktrace_config.h
@@ -25,8 +25,8 @@
 #if ABSL_STACKTRACE_INL_HEADER
 #error ABSL_STACKTRACE_INL_HEADER cannot be directly set
 #elif defined(__native_client__) || defined(__APPLE__) || \
-    defined(__ANDROID__) || defined(__myriad2__) || defined(asmjs__) || \
-    defined(__Fuchsia__)
+    defined(__FreeBSD__) || defined(__ANDROID__) || defined(__myriad2__) || \
+    defined(asmjs__) || defined(__Fuchsia__)
 #define ABSL_STACKTRACE_INL_HEADER \
     "absl/debugging/internal/stacktrace_unimplemented-inl.inc"
 
diff --git a/absl/debugging/internal/stacktrace_powerpc-inl.inc b/absl/debugging/internal/stacktrace_powerpc-inl.inc
index 0628b285f6c1..60a889a9253b 100644
--- a/absl/debugging/internal/stacktrace_powerpc-inl.inc
+++ b/absl/debugging/internal/stacktrace_powerpc-inl.inc
@@ -47,7 +47,8 @@ static inline void *StacktracePowerPCGetLR(void **sp) {
   return *(sp+2);
 #elif defined(_CALL_SYSV)
   return *(sp+1);
-#elif defined(__APPLE__) || (defined(__linux__) && defined(__PPC64__))
+#elif defined(__APPLE__) || defined(__FreeBSD__) || \
+  (defined(__linux__) && defined(__PPC64__))
   // This check is in case the compiler doesn't define _CALL_AIX/etc.
   return *(sp+2);
 #elif defined(__linux)