diff --git a/tests/test_opus_api.c b/tests/test_opus_api.c
index a04c75648b30ae0d24c51e4744c6afe3351a5fcb..cab39aaed3de547dd6cf67f14f3800f67c471e46 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>