summaryrefslogtreecommitdiff
path: root/audio/dap/patches/patch-ah
diff options
context:
space:
mode:
Diffstat (limited to 'audio/dap/patches/patch-ah')
-rw-r--r--audio/dap/patches/patch-ah58
1 files changed, 58 insertions, 0 deletions
diff --git a/audio/dap/patches/patch-ah b/audio/dap/patches/patch-ah
new file mode 100644
index 00000000000..20bcc8efd76
--- /dev/null
+++ b/audio/dap/patches/patch-ah
@@ -0,0 +1,58 @@
+$NetBSD: patch-ah,v 1.1.1.1 1999/12/04 12:56:31 scw Exp $
+
+--- libaudiofile/audiofile.h.orig Mon Nov 15 13:33:40 1999
++++ libaudiofile/audiofile.h Tue Nov 30 21:05:09 1999
+@@ -28,6 +28,9 @@
+ #include <math.h>
+ #include <fcntl.h>
+ #include <unistd.h>
++
++#define USE_STDIO
++
+ #include "ieee.h"
+
+ #ifdef __cplusplus
+@@ -35,6 +38,12 @@
+ {
+ #endif
+
++#ifndef USE_STDIO
++#define fhandle int
++#else
++#define fhandle FILE *
++#endif
++
+ #define MAX32 4294967296LL
+ #define MAX32_1 4294967295U
+ #define MAX31 2147483648U
+@@ -134,7 +143,7 @@
+ typedef struct
+ {
+ int mode;
+- int file;
++ fhandle file;
+ int actualBytes;
+ int actualFrames;
+ int ssndStart;
+@@ -286,15 +295,16 @@
+ const char *name,
+ const char *mode,
+ AFfilesetup setup);
+-AFfilehandle AFopenfd (int file,const char *mode,AFfilesetup setup);
+-AFfilehandle AFreadAIFF (int file);
+-AFfilehandle AFwriteAIFF (int file,AFfilesetup setup);
+
+-int AFgetfd (AFfilehandle handle);
++AFfilehandle AFopenfd (fhandle file,const char *mode,AFfilesetup setup);
++AFfilehandle AFreadAIFF (fhandle file);
++AFfilehandle AFwriteAIFF (fhandle file,AFfilesetup setup);
++
++fhandle AFgetfd (AFfilehandle handle);
+ int AFclosefile (AFfilehandle handle);
+ int AFclosefileAIFF (AFfilehandle handle);
+ int AFgetfilefmt (AFfilehandle handle,long *version);
+-int AFidentifyfd (int fd);
++int AFidentifyfd (fhandle fd);
+ double AFgetrate (AFfilehandle handle,int trackid);
+ void AFgetsampfmt (
+ AFfilehandle handle,