about summary refs log tree commit diff
path: root/libio
diff options
context:
space:
mode:
Diffstat (limited to 'libio')
-rw-r--r--libio/bug-memstream1.c1
-rw-r--r--libio/bug-wmemstream1.c1
-rw-r--r--libio/tst-fwrite-error.c1
-rw-r--r--libio/tst-memstream1.c1
-rw-r--r--libio/tst-memstream2.c1
-rw-r--r--libio/tst-memstream3.c1
6 files changed, 6 insertions, 0 deletions
diff --git a/libio/bug-memstream1.c b/libio/bug-memstream1.c
index 8af36fee2d..d1ecc79564 100644
--- a/libio/bug-memstream1.c
+++ b/libio/bug-memstream1.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <string.h>
+#include <stdlib.h>
 
 
 static int
diff --git a/libio/bug-wmemstream1.c b/libio/bug-wmemstream1.c
index 22d67f71e9..709a3c6d66 100644
--- a/libio/bug-wmemstream1.c
+++ b/libio/bug-wmemstream1.c
@@ -1,4 +1,5 @@
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <wchar.h>
 
diff --git a/libio/tst-fwrite-error.c b/libio/tst-fwrite-error.c
index d29df87fc1..fa64d5f0dc 100644
--- a/libio/tst-fwrite-error.c
+++ b/libio/tst-fwrite-error.c
@@ -18,6 +18,7 @@
 #include <fcntl.h>
 #include <unistd.h>
 #include <stdio.h>
+#include <stdlib.h>
 
 static int
 do_test (void)
diff --git a/libio/tst-memstream1.c b/libio/tst-memstream1.c
index d18f5cc22a..adc2aec257 100644
--- a/libio/tst-memstream1.c
+++ b/libio/tst-memstream1.c
@@ -1,5 +1,6 @@
 #include <mcheck.h>
 #include <stdio.h>
+#include <stdlib.h>
 
 
 #ifndef CHAR_T
diff --git a/libio/tst-memstream2.c b/libio/tst-memstream2.c
index cbea4b2f97..d3874faaad 100644
--- a/libio/tst-memstream2.c
+++ b/libio/tst-memstream2.c
@@ -1,5 +1,6 @@
 #include <mcheck.h>
 #include <stdio.h>
+#include <stdlib.h>
 
 
 #ifndef CHAR_T
diff --git a/libio/tst-memstream3.c b/libio/tst-memstream3.c
index d8c82d74cd..ce201d15eb 100644
--- a/libio/tst-memstream3.c
+++ b/libio/tst-memstream3.c
@@ -18,6 +18,7 @@
 
 #include <mcheck.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <stdarg.h>
 #include <errno.h>