Web lists-archives.com

[MPlayer-dev-eng] [PATCH 1/2] configure: Fix _aligned_malloc check




The check calls _aligned_malloc with a wrong number of arguments,
which results in an error.

Unbreak at least mingw64 after removal of the memalign hack from FFmpeg.

Fixes part of ticket #2318

Signed-off-by: Alexander Strasser <eclipse7@xxxxxxx>
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 3c6275335..fff44f5f1 100755
--- a/configure
+++ b/configure
@@ -3872,7 +3872,7 @@ echores "$_malloc"
 echocheck "aligned malloc"
 aligned_malloc=no
 def_aligned_malloc='#define HAVE_ALIGNED_MALLOC 0'
-statement_check malloc.h '_aligned_malloc(0)' && aligned_malloc=yes &&
+statement_check malloc.h '_aligned_malloc(1, 32)' && aligned_malloc=yes &&
   def_aligned_malloc='#define HAVE_ALIGNED_MALLOC 1'
 echores "$aligned_malloc"
 
-- 
2.11.0


  Alexander
_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng@xxxxxxxxxxxx
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng