aboutsummaryrefslogtreecommitdiff
path: root/audio/mpg123/files/patch-ab
blob: 640b33d5349a0586aa09e736c2814bf1fd41349a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
--- mpg123.c.orig	Wed Jun 16 01:51:36 1999
+++ mpg123.c	Fri Aug 13 15:25:52 1999
@@ -27,6 +27,10 @@
 #include <sched.h>
 #endif
 
+#ifdef __FreeBSD__
+#include <floatingpoint.h>
+#endif
+
 #include "mpg123.h"
 #include "getlopt.h"
 #include "buffer.h"
@@ -780,6 +784,10 @@
         _wildcard(&argc,&argv);
 #endif
 
+#ifdef __FreeBSD__
+	fpsetmask(0);
+#endif
+
 	if(sizeof(short) != 2) {
 		fprintf(stderr,"Ouch SHORT has size of %d bytes (required: '2')\n",(int)sizeof(short));
 		exit(1);
@@ -913,17 +921,6 @@
 				&dirname, &filename))
 				fprintf(stderr, "\nDirectory: %s", dirname);
 			fprintf(stderr, "\nPlaying MPEG stream from %s ...\n", filename);
-
-#if !defined(GENERIC)
-{
-     const char *term_type;
-         term_type = getenv("TERM");
-         if (!strcmp(term_type,"xterm"))
-         {
-           fprintf(stderr, "\033]0;%s\007", filename);
-         }
-}
-#endif
 
 		}