[rtems commit] score: Include missing header file

Sebastian Huber sebh at rtems.org
Thu Mar 21 07:06:59 UTC 2024


Module:    rtems
Branch:    master
Commit:    9e0bcd4fc77099a064b21e789ea5724dc5de55c3
Changeset: http://git.rtems.org/rtems/commit/?id=9e0bcd4fc77099a064b21e789ea5724dc5de55c3

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Mar 20 10:51:24 2024 +0100

score: Include missing header file

This fixes:

heap.c:268:3: warning: implicit declaration of function 'memset'

---

 cpukit/score/src/heap.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cpukit/score/src/heap.c b/cpukit/score/src/heap.c
index f2d02940bd..948e48e5d5 100644
--- a/cpukit/score/src/heap.c
+++ b/cpukit/score/src/heap.c
@@ -45,6 +45,8 @@
 #include <rtems/score/threadimpl.h>
 #include <rtems/score/interr.h>
 
+#include <string.h>
+
 #if CPU_ALIGNMENT == 0 || CPU_ALIGNMENT % 2 != 0
   #error "invalid CPU_ALIGNMENT value"
 #endif



More information about the vc mailing list