ref: 455993f1e1ab67abb5dbd2071dd2dcdd8119ba6a
parent: b88a7baf346f8a0016df51c72e93fe3b23fa80d0
author: Ralph Giles <[email protected]>
date: Fri Oct 28 05:23:20 EDT 2011
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.
--- 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>