1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/audio/mpg123/files/patch-ab
Joseph Koshy 0d64b3f065 Add a call to fpsetmask(3) to suppress FP related signals {new 'patch-ab'}.
The patch can probably be made less specific to FreeBSD; to be visited
after the 2.2.8 ports freeze ...

Tweak work/.../Makefile to add -O2 to compiles.

Submitted by:	Matthew Hunt <mph@FreeBSD.ORG>
1998-11-25 01:30:34 +00:00

26 lines
394 B
Plaintext

--- mpg123.c.orig Tue Nov 24 08:46:40 1998
+++ mpg123.c Tue Nov 24 08:47:25 1998
@@ -14,6 +14,10 @@
#include <sys/resource.h>
#endif
+#ifdef __FreeBSD__
+#include <floatingpoint.h>
+#endif
+
/* #define SET_PRIO */
#include "mpg123.h"
@@ -652,6 +656,10 @@
#ifdef OS2
_wildcard(&argc,&argv);
+#endif
+
+#ifdef __FreeBSD__
+ fpsetmask(0);
#endif
if(sizeof(short) != 2) {