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 f8efe8ed22..64e141c95a 100644
--- a/cpukit/libcsupport/src/malloc_deferred.c
+++ b/cpukit/libcsupport/src/malloc_deferred.c
@@ -40,7 +40,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>
@@ -66,6 +67,7 @@ Malloc_System_state _Malloc_System_state( void )
}
}
+#if !defined( INCLUDED_BY_FREE )
RTEMS_WEAK void _Malloc_Process_deferred_frees( void )
{
/*
@@ -73,6 +75,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,