1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Don't try to use fpresetsticky(3) on the Alpha as it doesn't exist there.

This commit is contained in:
Steve Price 2000-08-08 02:51:55 +00:00
parent 4f35114a4c
commit 3ec55c71e5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=31398
5 changed files with 50 additions and 21 deletions

View File

@ -0,0 +1,21 @@
--- standalone/main.cc.orig Sun Aug 6 21:58:28 2000
+++ standalone/main.cc Sun Aug 6 21:59:58 2000
@@ -31,7 +31,7 @@
#endif
#ifdef __FreeBSD__
-#include <floatingpoint.h>
+#include <ieeefp.h>
#endif
#include <kapp.h>
@@ -141,7 +141,9 @@
int retval = app->exec ();
#ifdef __FreeBSD__
+#ifndef __alpha__
fpresetsticky (FP_X_DZ|FP_X_INV);
+#endif
fpsetmask (FP_X_DZ|FP_X_INV);
#endif

View File

@ -1,15 +1,15 @@
--- main.c.orig Sun Feb 13 16:27:56 2000
+++ main.c Thu Feb 17 12:07:45 2000
@@ -32,6 +32,8 @@
--- main.c.orig Mon May 22 13:25:21 2000
+++ main.c Sun Aug 6 21:01:42 2000
@@ -33,6 +33,8 @@
#include <gnome.h>
#include <libgnomeui/gnome-window-icon.h>
+#include <floatingpoint.h>
+
#include <glibtop/close.h>
#include <locale.h>
@@ -205,6 +207,8 @@
@@ -206,6 +208,8 @@
poptContext ctx;
const char **args;
@ -18,12 +18,14 @@
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, GNOMELOCALEDIR);
textdomain (PACKAGE);
@@ -294,6 +298,9 @@
@@ -295,6 +299,11 @@
gtop_properties.global.show_toolbar);
gnome_config_sync ();
}
+
+#ifndef __alpha__
+ fpresetsticky (FP_X_DZ|FP_X_INV);
+#endif
+ fpsetmask (FP_X_DZ|FP_X_INV);
return 0;

View File

@ -1,15 +1,15 @@
--- main.c.orig Sun Feb 13 16:27:56 2000
+++ main.c Thu Feb 17 12:07:45 2000
@@ -32,6 +32,8 @@
--- main.c.orig Mon May 22 13:25:21 2000
+++ main.c Sun Aug 6 21:01:42 2000
@@ -33,6 +33,8 @@
#include <gnome.h>
#include <libgnomeui/gnome-window-icon.h>
+#include <floatingpoint.h>
+
#include <glibtop/close.h>
#include <locale.h>
@@ -205,6 +207,8 @@
@@ -206,6 +208,8 @@
poptContext ctx;
const char **args;
@ -18,12 +18,14 @@
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, GNOMELOCALEDIR);
textdomain (PACKAGE);
@@ -294,6 +298,9 @@
@@ -295,6 +299,11 @@
gtop_properties.global.show_toolbar);
gnome_config_sync ();
}
+
+#ifndef __alpha__
+ fpresetsticky (FP_X_DZ|FP_X_INV);
+#endif
+ fpsetmask (FP_X_DZ|FP_X_INV);
return 0;

View File

@ -1,15 +1,15 @@
--- main.c.orig Sun Feb 13 16:27:56 2000
+++ main.c Thu Feb 17 12:07:45 2000
@@ -32,6 +32,8 @@
--- main.c.orig Mon May 22 13:25:21 2000
+++ main.c Sun Aug 6 21:01:42 2000
@@ -33,6 +33,8 @@
#include <gnome.h>
#include <libgnomeui/gnome-window-icon.h>
+#include <floatingpoint.h>
+
#include <glibtop/close.h>
#include <locale.h>
@@ -205,6 +207,8 @@
@@ -206,6 +208,8 @@
poptContext ctx;
const char **args;
@ -18,12 +18,14 @@
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, GNOMELOCALEDIR);
textdomain (PACKAGE);
@@ -294,6 +298,9 @@
@@ -295,6 +299,11 @@
gtop_properties.global.show_toolbar);
gnome_config_sync ();
}
+
+#ifndef __alpha__
+ fpresetsticky (FP_X_DZ|FP_X_INV);
+#endif
+ fpsetmask (FP_X_DZ|FP_X_INV);
return 0;

View File

@ -1,5 +1,5 @@
--- src/fsv.c.orig Sun Feb 13 02:03:57 2000
+++ src/fsv.c Sun Feb 13 02:06:19 2000
--- src/fsv.c.orig Wed Jan 26 20:49:55 2000
+++ src/fsv.c Sun Aug 6 19:14:34 2000
@@ -26,6 +26,9 @@
#include "common.h"
#include "fsv.h"
@ -21,12 +21,14 @@
/* Initialize global variables */
globals.fstree = NULL;
globals.history = NULL;
@@ -311,6 +318,10 @@
@@ -311,6 +318,12 @@
gtk_main( );
+#ifdef __FreeBSD__
+#ifndef __alpha__
+ fpresetsticky(FP_X_DZ|FP_X_INV);
+#endif
+ fpsetmask(FP_X_DZ|FP_X_INV);
+#endif
return 0;