From 3df8ee7eec9ae508bf5a145535b53bee64569e84 Mon Sep 17 00:00:00 2001 From: Gleb Popov <6yearold@gmail.com> Date: Sat, 30 Mar 2019 16:23:58 +0400 Subject: Fix build of Executor.cpp on FreeBSD. --- lib/Core/Executor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Core') 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 -- cgit 1.4.1