[PATCH 1/2] configure: Fix _aligned_malloc check

Alexander Strasser <[email protected]>
Newsgroups gmane.comp.video.mplayer.devel
Message-ID <3ed824a2db4caf6222ec1d8efb4122ca466243ee.1491173043.git.eclipse7@gmx.net>
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 <[email protected]>
---
 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
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.