summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornik <nik@FreeBSD.org>2000-04-22 00:54:36 +0000
committernik <nik@FreeBSD.org>2000-04-22 00:54:36 +0000
commitacd0c4a07d7f087fce782dc01a434b36548d5920 (patch)
treec5e5a4c801e38795cec2e0a71e644b5b8096c2ef
parent2366b4914a212306845e22e9819d9b911a003e7e (diff)
downloadFreeBSD-ports-acd0c4a07d7f087fce782dc01a434b36548d5920.zip
FreeBSD-ports-acd0c4a07d7f087fce782dc01a434b36548d5920.tar.gz
"fpsetmask(0)" at the top of main() to prevent floating point core-dumps.
Approved by: maintainer
-rw-r--r--graphics/dia/files/patch-ae20
1 files changed, 20 insertions, 0 deletions
diff --git a/graphics/dia/files/patch-ae b/graphics/dia/files/patch-ae
new file mode 100644
index 0000000..8f16e74
--- /dev/null
+++ b/graphics/dia/files/patch-ae
@@ -0,0 +1,20 @@
+--- app/main.c.org Wed Apr 19 20:56:49 2000
++++ app/main.c Wed Apr 19 20:57:43 2000
+@@ -15,6 +15,8 @@
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
++#include <ieeefp.h>
++
+ #include "geometry.h"
+ #include "diagram.h"
+ #include "display.h"
+@@ -25,6 +27,8 @@
+
+ int main(int argc, char *argv[])
+ {
++ fpsetmask(0);
++
+ app_init(argc, argv);
+
+ gtk_main ();
OpenPOWER on IntegriCloud