[MPlayer-dev-eng] [PATCH] libdts FreeBSD problem

Aurelien Jacobs aurel at gnuage.org
Thu Aug 12 18:27:20 CEST 2004


On Thu, 12 Aug 2004 16:20:03 +0000
Roberto Togni <r_togni at tiscali.it> wrote:

> On 2004.08.12 16:29, Bohdan Horst wrote:
> > 
> > FreeBSD 5.2.1
> > gcc version 3.3.3 [FreeBSD] 20031106
> > 
> > In file included from dtsdec.c:31:
> > /usr/include/malloc.h:3:2: #error "<malloc.h> has been replaced by
> > <stdlib.h>"
> > gmake[1]: *** [dtsdec.o] Error 1
> > 
> > 
> > patch proposal (i know.. wrong list..:) :
> > 
> > --- dtsdec.c.orig       Thu Aug 12 16:16:39 2004
> > +++ dtsdec.c    Thu Aug 12 16:16:24 2004
> > @@ -28,7 +28,10 @@
> > 
> >  #include <stdlib.h>
> >  #include <string.h>
> > +
> > +#ifdef HAVE_MALLOC_H
> >  #include <malloc.h>
> > +#endif
> > 
> >  #define INBUF_SIZE 4096
> >  #define BUFFER_SIZE 4096
> > 
> >
> What version of libdts are you using?
> I can't find any reference to malloc.h both in 0.0.2 and in current
> svn Please try to upgrade your libdts

He probably talks about dtsdec.c from libavcodec, and so this
should go to the ffmpeg dev-list.
I also think that the include should simply be removed.

Aurel




More information about the MPlayer-dev-eng mailing list