[MPlayer-dev-eng] [PATCH] OpenBSD, small fixes.

pl p_l at gmx.fr
Sat May 11 14:02:55 CEST 2002


Hi,

On Sat, May 11, 2002 at 01:32:37PM +0200, Arpi wrote:
> >  #ifdef HAVE_MEMALIGN.
> >  /* some systems have memalign() but no declaration for it */.
> >  void * memalign (size_t align, size_t size);.
> > -#else.
> > -/* assume malloc alignment is sufficient */.
> > -#define memalign(align,size) malloc (size).
> >  #endif.
> 
> this is BAD!

There's already a memalign wrapper in config.h:

/* memalign is mapped to malloc if unsupported */
#define HAVE_MEMALIGN 1
#ifndef HAVE_MEMALIGN
# define memalign(a,b) malloc(b)
#endif


-- 
Best regards,
  pl



More information about the MPlayer-dev-eng mailing list