about summary refs log tree commit diff
path: root/stdio-common
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common')
-rw-r--r--stdio-common/scanf4.c1
-rw-r--r--stdio-common/scanf5.c1
-rw-r--r--stdio-common/temptest.c1
-rw-r--r--stdio-common/tst-fileno.c3
-rw-r--r--stdio-common/tst-printfsz.c1
5 files changed, 6 insertions, 1 deletions
diff --git a/stdio-common/scanf4.c b/stdio-common/scanf4.c
index 177b2ec22f..f9a9134745 100644
--- a/stdio-common/scanf4.c
+++ b/stdio-common/scanf4.c
@@ -1,4 +1,5 @@
 #include <stdio.h>
+#include <stdlib.h>
 
 int
 main(int arc, char *argv[])
diff --git a/stdio-common/scanf5.c b/stdio-common/scanf5.c
index bbbb774c23..fb4acfabf1 100644
--- a/stdio-common/scanf5.c
+++ b/stdio-common/scanf5.c
@@ -1,4 +1,5 @@
 #include <stdio.h>
+#include <stdlib.h>
 
 int
 main(int argc, char *argv[])
diff --git a/stdio-common/temptest.c b/stdio-common/temptest.c
index 35ea4dc808..ec8e179f03 100644
--- a/stdio-common/temptest.c
+++ b/stdio-common/temptest.c
@@ -1,4 +1,5 @@
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 
 char *files[500];
diff --git a/stdio-common/tst-fileno.c b/stdio-common/tst-fileno.c
index 0b47c0f0d3..79c768d732 100644
--- a/stdio-common/tst-fileno.c
+++ b/stdio-common/tst-fileno.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1994, 1997, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -17,6 +17,7 @@
    Boston, MA 02111-1307, USA.  */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h>
 
 static int
diff --git a/stdio-common/tst-printfsz.c b/stdio-common/tst-printfsz.c
index fed829c012..5925050b59 100644
--- a/stdio-common/tst-printfsz.c
+++ b/stdio-common/tst-printfsz.c
@@ -1,6 +1,7 @@
 /* Based on code by Larry McVoy <lm@neteng.engr.sgi.com>.  */
 #include <printf.h>
 #include <stdio.h>
+#include <string.h>
 
 #define V       12345678.12345678