From 2206d51b82ab1353b33e78a18ebc4d6970ff05db Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 28 Jul 2017 14:19:47 +0200 Subject: [PATCH] libcontext FreeBSD compatibility fix Fixes: lp:1671083 * https://bugs.launchpad.net/kicad/+bug/1671083 --- include/system/libcontext.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/system/libcontext.h b/include/system/libcontext.h index b71e17d3cb..336787bec5 100644 --- a/include/system/libcontext.h +++ b/include/system/libcontext.h @@ -22,15 +22,14 @@ #include -#if defined(__GNUC__) || defined(__APPLE__) +#if defined(__GNUC__) || defined(__APPLE__) || defined(__FreeBSD__) #define LIBCONTEXT_COMPILER_gcc - #if defined(__linux__) - #ifdef __x86_64__ + #if defined(__linux__) || defined(__FreeBSD__) + #if defined(__x86_64__) || defined(__amd64__) #define LIBCONTEXT_PLATFORM_linux_x86_64 #define LIBCONTEXT_CALL_CONVENTION - #elif __i386__ #define LIBCONTEXT_PLATFORM_linux_i386 #define LIBCONTEXT_CALL_CONVENTION