aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/gtop/files
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>1998-10-19 22:42:14 +0800
committervanilla <vanilla@FreeBSD.org>1998-10-19 22:42:14 +0800
commit245735ccf7cf23134f06f5eeb64f13b988bbc89a (patch)
tree7536d4d1ed0f80ccd8d888db8e260e54d4684cc9 /sysutils/gtop/files
parent11896d9b3aaec6a3422bca833dd3a57901363165 (diff)
downloadfreebsd-ports-gnome-245735ccf7cf23134f06f5eeb64f13b988bbc89a.tar.gz
freebsd-ports-gnome-245735ccf7cf23134f06f5eeb64f13b988bbc89a.tar.zst
freebsd-ports-gnome-245735ccf7cf23134f06f5eeb64f13b988bbc89a.zip
Add a patch from maintainer.
PR: ports/8273 Submitted by: maintainer
Diffstat (limited to 'sysutils/gtop/files')
-rw-r--r--sysutils/gtop/files/patch-ad40
1 files changed, 40 insertions, 0 deletions
diff --git a/sysutils/gtop/files/patch-ad b/sysutils/gtop/files/patch-ad
new file mode 100644
index 000000000000..dae8865cf55e
--- /dev/null
+++ b/sysutils/gtop/files/patch-ad
@@ -0,0 +1,40 @@
+--- main.c.orig Sun Sep 27 22:47:58 1998
++++ main.c Wed Oct 14 02:36:27 1998
+@@ -2,7 +2,7 @@
+
+ /*
+ * gtop - gnome system monitor
+ * Copyright (C) 1997,98 Radek Doulík
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+@@ -31,6 +31,8 @@
+
+ #include <gnome.h>
+
++#include <floatingpoint.h>
++
+ GtkWidget *window;
+ GtkWidget *notebook;
+ GtkNotebookPage *offPage;
+@@ -273,8 +275,11 @@
+ int
+ main (int argc, char *argv[])
+ {
++
+ GnomeClient *client;
+
++ fpsetmask(fpgetmask() & ~(FP_X_DZ|FP_X_INV));
++
+ argp_program_version = VERSION;
+
+ bindtextdomain (PACKAGE, GNOMELOCALEDIR);
+@@ -363,5 +368,8 @@
+ /* enter gtk main */
+ gtk_main ();
+
++ fpresetsticky(FP_X_DZ|FP_X_INV);
++ fpsetmask(FP_X_DZ|FP_X_INV);
++
+ return 0;
+ }