aboutsummaryrefslogtreecommitdiff
path: root/audio/timidity/files/patch-aa
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1996-11-17 11:10:09 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1996-11-17 11:10:09 +0000
commit09b534a2e190f229847c0ddbda19dbf26b1b44c5 (patch)
tree37feba55bb4754733b16d3b26eefe2a1a1275ac8 /audio/timidity/files/patch-aa
parent8be09d854e3fba5023ba3efa61d4e7b1865f198f (diff)
downloadports-09b534a2e190f229847c0ddbda19dbf26b1b44c5.tar.gz
ports-09b534a2e190f229847c0ddbda19dbf26b1b44c5.zip
Notes
Diffstat (limited to 'audio/timidity/files/patch-aa')
-rw-r--r--audio/timidity/files/patch-aa85
1 files changed, 85 insertions, 0 deletions
diff --git a/audio/timidity/files/patch-aa b/audio/timidity/files/patch-aa
new file mode 100644
index 000000000000..3f12b08b1ce0
--- /dev/null
+++ b/audio/timidity/files/patch-aa
@@ -0,0 +1,85 @@
+*** config.h.orig Sat Jun 1 16:54:49 1996
+--- config.h Sun Nov 17 10:00:29 1996
+***************
+*** 217,222 ****
+--- 217,238 ----
+ # endif
+ #endif /* linux */
+
++ #ifdef __FreeBSD__
++ #include <errno.h>
++ #include <machine/endian.h>
++ #if BYTE_ORDER == LITTLE_ENDIAN
++ #undef BIG_ENDIAN
++ #undef PDP_ENDIAN
++ #elif BYTE_ORDER == BIG_ENDIAN
++ #undef LITTLE_ENDIAN
++ #undef PDP_ENDIAN
++ #else
++ # error No valid byte sex defined
++ #endif
++ #define USE_LDEXP
++ #define PI M_PI
++ #endif
++
+ /* Win32 on Intel machines */
+ #ifdef __WIN32__
+ # define LITTLE_ENDIAN
+***************
+*** 254,266 ****
+--- 270,292 ----
+ #ifdef LITTLE_ENDIAN
+ #define LE_SHORT(x) x
+ #define LE_LONG(x) x
++ #ifdef __FreeBSD__
++ #define BE_SHORT(x) __byte_swap_word(x)
++ #define BE_LONG(x) __byte_swap_long(x)
++ #else
+ #define BE_SHORT(x) XCHG_SHORT(x)
+ #define BE_LONG(x) XCHG_LONG(x)
++ #endif
+ #else
+ #define BE_SHORT(x) x
+ #define BE_LONG(x) x
++ #ifdef __FreeBSD__
++ #define LE_SHORT(x) __byte_swap_word(x)
++ #define LE_LONG(x) __byte_swap_long(x)
++ #else
+ #define LE_SHORT(x) XCHG_SHORT(x)
+ #define LE_LONG(x) XCHG_LONG(x)
++ #endif
+ #endif
+
+ #define MAX_AMPLIFICATION 800
+*** mix.c.orig Mon May 20 17:09:46 1996
+--- mix.c Sun Nov 17 10:01:36 1996
+***************
+*** 23,29 ****
+--- 23,33 ----
+
+ #include <math.h>
+ #include <stdio.h>
++ #ifdef __FreeBSD__
++ #include <stdlib.h>
++ #else
+ #include <malloc.h>
++ #endif
+
+ #include "config.h"
+ #include "common.h"
+*** resample.c.orig Mon May 20 17:09:47 1996
+--- resample.c Sun Nov 17 09:59:29 1996
+***************
+*** 22,28 ****
+--- 22,32 ----
+
+ #include <math.h>
+ #include <stdio.h>
++ #ifdef __FreeBSD__
++ #include <stdlib.h>
++ #else
+ #include <malloc.h>
++ #endif
+
+ #include "config.h"
+ #include "common.h"