summaryrefslogtreecommitdiff
path: root/audio/bladeenc/patches/patch-ae
blob: a9b8284b6f236ab6d7beda82a9aab9da110e719e (plain)
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
$NetBSD: patch-ae,v 1.2 1999/09/20 09:30:19 agc Exp $

--- common.h.orig	Fri Jul 23 22:50:33 1999
+++ common.h	Mon Sep 20 10:16:42 1999
@@ -172,12 +172,17 @@
 extern enum byte_order NativeByteOrder;
 
 /* "bit_stream.h" Type Definitions */
+
+#if defined(__sun__) && defined(__svr4__)
+typedef unsigned char	u_int8_t;
+#endif
+
 
 typedef struct  bit_stream_struc {
     FILE        *pt;            /* pointer to bit stream device */
-    unsigned char *buf;         /* bit stream buffer */
+    u_int8_t *buf;         /* bit stream buffer */
     int         buf_size;       /* size of buffer (in number of bytes) */
-    long        totbit;         /* bit counter of bit stream */
+    int        totbit;         /* bit counter of bit stream */
 
     int         buf_byte_idx;   /* pointer to top byte in buffer */
     int         buf_bit_idx;    /* pointer to top bit of top byte in buffer */
@@ -212,7 +217,7 @@
 /* The following functions are in the file "common.c" */
 
 extern void 					hdr_to_frps(frame_params *fr_ps); /* interpret data in hdr str to fields in fr_ps */
-extern void  				 *mem_alloc(unsigned long block, char *item);
+extern void  				 *mem_alloc(unsigned int block, char *item);
 extern void    				mem_free( void **ptr_addr);
 extern void           read_absthr();