diff --git a/src/Main/bootstrap.cxx b/src/Main/bootstrap.cxx index 1984ef27c..f6696081c 100644 --- a/src/Main/bootstrap.cxx +++ b/src/Main/bootstrap.cxx @@ -28,6 +28,8 @@ #if defined(__linux__) && defined(__i386__) # include # include +#elif defined(__FreeBSD__) +# include #endif #include @@ -147,9 +149,12 @@ int main ( int argc, char **argv ) { _bootstrap_OSInit = 0; - // Enable floating-point exceptions for Linux/x86 #if defined(__linux__) && defined(__i386__) + // Enable floating-point exceptions for Linux/x86 initFPE(); +#elif defined(__FreeBSD__) + // Ignore floating-point exceptions on FreeBSD + signal(SIGFPE, SIG_IGN); #endif #if defined(sgi)