[MPlayer-dev-eng] libmpdemux/muxer_rawaudio.c (aviheader.h) compile prob on OSX
Steven M. Schultz
sms at 2BSD.COM
Sun Jun 19 19:50:07 CEST 2005
Hi -
off_t apparently is not in scope, at least on OSX 10.4.1, when
building muxer_rawaudio.c
cc -c -I../libvo -I../../libvo -I/usr/X11R6/include -O4 -mcpu=970 -mtune=970 -faltivec -D__APPLE_ALTIVEC__ -pipe -ffast-math -fomit-frame-pointer -mdynamic-no-pic -falign-loops=16 -DSYS_DARWIN -DCONFIG_DARWIN -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -std=gnu99 -I.. -I../loader -I../libavcodec -I../libavformat -o muxer_rawaudio.o muxer_rawaudio.c
In file included from muxer_rawaudio.c:8:
aviheader.h:340: error: parse error before "off_t"
aviheader.h:340: warning: no semicolon at end of struct or union
aviheader.h:341: warning: type defaults to 'int' in declaration of 'idx_pos_a'
aviheader.h:341: warning: data definition has no type or storage class
aviheader.h:342: error: parse error before "idx_pos_v"
... many more lines of errors ...
Simple attached patch adds <sys/types.h> in aviheader.h
Cheers,
Steven Schultz
-------------- next part --------------
--- libmpdemux/aviheader.h.dist 2004-07-18 10:07:41.000000000 -0700
+++ libmpdemux/aviheader.h 2005-06-19 10:35:03.000000000 -0700
@@ -3,6 +3,7 @@
//#include "config.h" /* get correct definition WORDS_BIGENDIAN */
#include "bswap.h"
+#include <sys/types.h>
#ifndef MIN
#define MIN(a,b) (((a)<(b))?(a):(b))
More information about the MPlayer-dev-eng
mailing list