[compiler-rt] 0df0d6a - [Sanitizers] DragonFlyBSD adding support for builtins
David Carlier via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 17 03:11:33 PDT 2021
Author: David Carlier
Date: 2021-04-17T11:10:35+01:00
New Revision: 0df0d6acea3365f4039cb889b787f02664e07032
URL: https://github.com/llvm/llvm-project/commit/0df0d6acea3365f4039cb889b787f02664e07032
DIFF: https://github.com/llvm/llvm-project/commit/0df0d6acea3365f4039cb889b787f02664e07032.diff
LOG: [Sanitizers] DragonFlyBSD adding support for builtins
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D89653
Added:
Modified:
compiler-rt/lib/builtins/atomic.c
Removed:
################################################################################
diff --git a/compiler-rt/lib/builtins/atomic.c b/compiler-rt/lib/builtins/atomic.c
index f48cdc10ccf7a..2d109d2d1bca2 100644
--- a/compiler-rt/lib/builtins/atomic.c
+++ b/compiler-rt/lib/builtins/atomic.c
@@ -52,7 +52,7 @@ static const long SPINLOCK_MASK = SPINLOCK_COUNT - 1;
// defined. Each platform should define the Lock type, and corresponding
// lock() and unlock() functions.
////////////////////////////////////////////////////////////////////////////////
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__DragonFly__)
#include <errno.h>
// clang-format off
#include <sys/types.h>
More information about the llvm-commits
mailing list