diff --git a/cpukit/libcsupport/src/_free_r.c b/cpukit/libcsupport/src/_free_r.c index d5a91dc36a..9b3eb5c285 100644 --- a/cpukit/libcsupport/src/_free_r.c +++ b/cpukit/libcsupport/src/_free_r.c @@ -15,7 +15,7 @@ #include "config.h" #endif -#ifdef RTEMS_NEWLIB +#if defined(RTEMS_NEWLIB) && !defined(HAVE__FREE_R) #include #include diff --git a/cpukit/libcsupport/src/_malloc_r.c b/cpukit/libcsupport/src/_malloc_r.c index 63ec6d1257..9a30097324 100644 --- a/cpukit/libcsupport/src/_malloc_r.c +++ b/cpukit/libcsupport/src/_malloc_r.c @@ -15,7 +15,7 @@ #include "config.h" #endif -#ifdef RTEMS_NEWLIB +#if defined(RTEMS_NEWLIB) && !defined(HAVE__MALLOC_R) #include #include