diff options
-rw-r--r-- | tests/auto/integrationtests/exceptionsafety_objects/oomsimulator.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/auto/integrationtests/exceptionsafety_objects/oomsimulator.h b/tests/auto/integrationtests/exceptionsafety_objects/oomsimulator.h index f2db6949cc..15500f590b 100644 --- a/tests/auto/integrationtests/exceptionsafety_objects/oomsimulator.h +++ b/tests/auto/integrationtests/exceptionsafety_objects/oomsimulator.h @@ -59,7 +59,7 @@ static void my_terminate_handler() exit(1); } -#ifdef __GLIBC__ +#if defined(__GLIBC__) && !defined(__UCLIBC__) /* Use glibc's memory allocation hooks */ // From glibc 2.14, the malloc hook variables are declared volatile. @@ -195,6 +195,12 @@ static struct QCrtDebugRegistrator } crtDebugRegistrator; +#else + +static void disableHooks() +{ +} + #endif struct AllocFailer |