aboutsummaryrefslogtreecommitdiff
path: root/sys/gnu
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1998-08-15 21:36:16 +0000
committerBruce Evans <bde@FreeBSD.org>1998-08-15 21:36:16 +0000
commit8705accbe7b692f008790eebcb4715be5b45a214 (patch)
treecbf8074d2c194c04f1917dcf7133351ab2f6efaf /sys/gnu
parent38a0ff129f1667feff30017ae055cb3799723597 (diff)
Notes
Diffstat (limited to 'sys/gnu')
-rw-r--r--sys/gnu/i386/isa/sound/awe_wave.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/gnu/i386/isa/sound/awe_wave.c b/sys/gnu/i386/isa/sound/awe_wave.c
index 1f3269e162523..c4f3cbf3fe60e 100644
--- a/sys/gnu/i386/isa/sound/awe_wave.c
+++ b/sys/gnu/i386/isa/sound/awe_wave.c
@@ -21,6 +21,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#include <stddef.h>
+
#ifdef __FreeBSD__
# include <gnu/i386/isa/sound/awe_config.h>
#else
@@ -3296,7 +3298,7 @@ awe_load_guspatch(const char *addr, int offs, int size, int pmgr_flag)
int note, free_sample, free_info;
int rc;
- sizeof_patch = (int)((long)&patch.data[0] - (long)&patch); /* header size */
+ sizeof_patch = offsetof(struct patch_info, data); /* header size */
if (size < sizeof_patch) {
printk("AWE32 Error: Patch header too short\n");
return RET_ERROR(EINVAL);