diff options
-rw-r--r-- | lib/Core/Executor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp index d14fae21..845fa8ff 100644 --- a/lib/Core/Executor.cpp +++ b/lib/Core/Executor.cpp @@ -4070,7 +4070,7 @@ void Executor::prepareForEarlyExit() { /// Returns the errno location in memory int *Executor::getErrnoLocation(const ExecutionState &state) const { -#ifndef __APPLE__ +#if !defined(__APPLE__) && !defined(__FreeBSD__) /* From /usr/include/errno.h: it [errno] is a per-thread variable. */ return __errno_location(); #else |