summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRalph Giles <giles@mozilla.com>2011-10-28 09:23:20 -0700
committerRalph Giles <giles@mozilla.com>2011-10-28 10:20:16 -0700
commit455993f1e1ab67abb5dbd2071dd2dcdd8119ba6a (patch)
tree03308557a7f1b8943ff527b3d6952c3da8d5e28b /tests
parentb88a7baf346f8a0016df51c72e93fe3b23fa80d0 (diff)
downloadopus-455993f1e1ab67abb5dbd2071dd2dcdd8119ba6a.tar.gz
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_opus_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_opus_api.c b/tests/test_opus_api.c
index a04c7564..cab39aae 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>