From 455993f1e1ab67abb5dbd2071dd2dcdd8119ba6a Mon Sep 17 00:00:00 2001
From: Ralph Giles <giles@mozilla.com>
Date: Fri, 28 Oct 2011 09:23:20 -0700
Subject: [PATCH] Make the MALLOC_FAIL test solely dependent on
 HAVE___MALLOC_HOOK.

This test only works on glibc, but the important thing is support
for the __malloc_hook api, so that's what we should depend on,
especially since not all glibc versions have it.
---
 tests/test_opus_api.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test_opus_api.c b/tests/test_opus_api.c
index a04c75648..cab39aaed 100644
--- a/tests/test_opus_api.c
+++ b/tests/test_opus_api.c
@@ -61,7 +61,7 @@
 #define VG_CHECK(x,y)
 #endif
 
-#if defined(__GLIBC__) && defined(HAVE___MALLOC_HOOK)
+#if defined(HAVE___MALLOC_HOOK)
 #define MALLOC_FAIL
 #include "os_support.h"
 #include <malloc.h>
-- 
GitLab