diff options
author | jylefort <jylefort@FreeBSD.org> | 2005-10-04 01:15:25 +0800 |
---|---|---|
committer | jylefort <jylefort@FreeBSD.org> | 2005-10-04 01:15:25 +0800 |
commit | 0cca132ecdd385db9434b8298aeabff062b33feb (patch) | |
tree | d103be50501bce4fadc66e2de20c0c0769f6d6a5 /games/flightgear | |
parent | 2200ab13581f038360733971f3796cbc2010c967 (diff) | |
download | freebsd-ports-gnome-0cca132ecdd385db9434b8298aeabff062b33feb.tar.gz freebsd-ports-gnome-0cca132ecdd385db9434b8298aeabff062b33feb.tar.zst freebsd-ports-gnome-0cca132ecdd385db9434b8298aeabff062b33feb.zip |
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)
Diffstat (limited to 'games/flightgear')
-rw-r--r-- | games/flightgear/Makefile | 1 | ||||
-rw-r--r-- | games/flightgear/files/patch-src_Main_bootstrap.cxx | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/games/flightgear/Makefile b/games/flightgear/Makefile index eb3edcda140f..4396c0964def 100644 --- a/games/flightgear/Makefile +++ b/games/flightgear/Makefile @@ -7,6 +7,7 @@ PORTNAME= FlightGear PORTVERSION= 0.9.8 +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= ftp://ftp.flightgear.org/pub/fgfs/Source/ \ ftp://ftp.de.flightgear.org/pub/fgfs/Source/ 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) |