From 9163ecbe86e977b1c400267e46e0d98d3f6728c3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jostein=20Kj=C3=B8nigsen?= Date: Fri, 3 Apr 2015 14:31:41 +0000 Subject: [PATCH] Make FreeBSD handle exceptions like Linux. Addresses https://github.com/dotnet/coreclr/issues/626 . --- src/pal/src/exception/seh.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pal/src/exception/seh.cpp b/src/pal/src/exception/seh.cpp index 788c220..e6f7b7a 100644 --- a/src/pal/src/exception/seh.cpp +++ b/src/pal/src/exception/seh.cpp @@ -171,7 +171,7 @@ PAL_ERROR SEHEnable(CPalThread *pthrCurrent) { #if HAVE_MACH_EXCEPTIONS return pthrCurrent->EnableMachExceptions(); -#elif __LINUX__ +#elif __LINUX__ || defined(__FreeBSD__) // TODO: This needs to be implemented. Cannot put an ASSERT here // because it will make other parts of PAL fail. return NO_ERROR; @@ -200,7 +200,7 @@ PAL_ERROR SEHDisable(CPalThread *pthrCurrent) return pthrCurrent->DisableMachExceptions(); // TODO: This needs to be implemented. Cannot put an ASSERT here // because it will make other parts of PAL fail. -#elif __LINUX__ +#elif __LINUX__ || defined(__FreeBSD__) return NO_ERROR; #else // HAVE_MACH_EXCEPTIONS #error not yet implemented -- 2.7.4