diff options
author | Jean-Yves Lefort <jylefort@FreeBSD.org> | 2005-10-03 17:15:25 +0000 |
---|---|---|
committer | Jean-Yves Lefort <jylefort@FreeBSD.org> | 2005-10-03 17:15:25 +0000 |
commit | 97d9539bf5c713eca7290e18aef8458d69c95c1a (patch) | |
tree | 60baa01155ae145ba4226c886037cd22a2dbb78d /games/flightgear/files/patch-src_Main_bootstrap.cxx | |
parent | - Fix plist: remove the "dotemacs" from INSTALL_TARGET so default.el is not (diff) |
Do not die when a floating point exception occurs in the nvidia GL
library (ignore SIGFPE).
PR: ports/86220
Submitted by: jylefort
Approved by: maintainer timeout (17 days)
Notes
Notes:
svn path=/head/; revision=144085
Diffstat (limited to 'games/flightgear/files/patch-src_Main_bootstrap.cxx')
-rw-r--r-- | games/flightgear/files/patch-src_Main_bootstrap.cxx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/games/flightgear/files/patch-src_Main_bootstrap.cxx b/games/flightgear/files/patch-src_Main_bootstrap.cxx new file mode 100644 index 000000000000..f805515f1eb0 --- /dev/null +++ b/games/flightgear/files/patch-src_Main_bootstrap.cxx @@ -0,0 +1,20 @@ +--- src/Main/bootstrap.cxx.orig Thu Sep 15 20:48:39 2005 ++++ src/Main/bootstrap.cxx Thu Sep 15 20:51:05 2005 +@@ -28,6 +28,8 @@ + #if defined(__linux__) && defined(__i386__) + # include <fpu_control.h> + # include <signal.h> ++#elif defined(__FreeBSD__) ++# include <signal.h> + #endif + + #include <stdlib.h> +@@ -144,6 +146,8 @@ + // Enable floating-point exceptions for Linux/x86 + #if defined(__linux__) && defined(__i386__) + initFPE(); ++#elif defined(__FreeBSD__) ++ signal(SIGFPE, SIG_IGN); + #endif + + #if defined(sgi) |