diff --git a/tests/stdlib_test.cpp b/tests/stdlib_test.cpp
index 0bfb0c38f..083e86a63 100644
--- a/tests/stdlib_test.cpp
+++ b/tests/stdlib_test.cpp
@@ -24,6 +24,8 @@
 #include <stdint.h>
 #include <stdlib.h>
 #include <fcntl.h>
+#include <sys/types.h>
+#include <sys/wait.h>
 
 TEST(stdlib, drand48) {
   srand48(0x01020304);