[opus] [PATCH] stream.c needs sys/types.h

Ozkan Sezer sezeroz at gmail.com
Wed May 1 06:32:54 PDT 2013


On Wed, May 1, 2013 at 4:30 PM, Timothy B. Terriberry <tterribe at xiph.org> wrote:
> Ozkan Sezer wrote:
>> OTOH, the need for sys/types.h is there unless the cast is removed..
>
> Fixed: http://git.xiph.org/?p=opusfile.git;a=commitdiff;h=14da0dd2
>
> fpos_t is not guaranteed to be a simple numeric type, so it's basically
> useless for this sort of thing (you can use it to save and restore the
> file position, but you can't do arithmetic on that position). I don't
> know why 10.4 is using it in fseeko(), but I'm happy to include
> <sys/types.h> if it solves the problem.

It does solve the problem, thanks.

--
O.S.


More information about the opus mailing list