summaryrefslogtreecommitdiff
path: root/cpukit/libcsupport/src/malloc_deferred.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libcsupport/src/malloc_deferred.c')
-rw-r--r--cpukit/libcsupport/src/malloc_deferred.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/libcsupport/src/malloc_deferred.c b/cpukit/libcsupport/src/malloc_deferred.c
index b319d1213e..6f71c850f8 100644
--- a/cpukit/libcsupport/src/malloc_deferred.c
+++ b/cpukit/libcsupport/src/malloc_deferred.c
@@ -21,7 +21,8 @@
#include "config.h"
#endif
-#ifdef RTEMS_NEWLIB
+#if defined( RTEMS_NEWLIB ) && \
+ ( !defined( RTEMS_QUAL ) || defined( INCLUDED_BY_FREE ) )
#include <stdlib.h>
#include <string.h>
@@ -47,6 +48,7 @@ Malloc_System_state _Malloc_System_state( void )
}
}
+#if !defined( INCLUDED_BY_FREE )
RTEMS_WEAK void _Malloc_Process_deferred_frees( void )
{
/*
@@ -54,6 +56,7 @@ RTEMS_WEAK void _Malloc_Process_deferred_frees( void )
* strong implementation of this function will be provided.
*/
}
+#endif
void *rtems_heap_allocate_aligned_with_boundary(
size_t size,