diff --git a/tests/stdlib/alloc.c b/tests/stdlib/alloc.c
index 4875b87519f7a7ad849bab4044ecbd23024de123..d71b78130c5d5eae638daa629a41fa104ecda248 100644
--- a/tests/stdlib/alloc.c
+++ b/tests/stdlib/alloc.c
@@ -1,6 +1,7 @@
 #include <malloc.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <stdint.h> /* for SIZE_MAX */
 
 int main(int argc, char ** argv) {
     char * ptr = (char *)malloc(256);