summaryrefslogtreecommitdiff
path: root/libc/stdio
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-09-27 05:24:26 +0000
committerEric Andersen <andersen@codepoet.org>2001-09-27 05:24:26 +0000
commit2512c847453c24b928c34beed88902fbb6877b7a (patch)
tree3d327c54c00684b85c435cffa29c5050888c0a69 /libc/stdio
parente83a36ce9f97ac0f59117b3a62fd2dd8461b1fd5 (diff)
Update to accomodate the header file changes
Diffstat (limited to 'libc/stdio')
-rw-r--r--libc/stdio/getline.c1
-rw-r--r--libc/stdio/perror.c1
-rw-r--r--libc/stdio/scanf.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/libc/stdio/getline.c b/libc/stdio/getline.c
index 870f6ed4a..8b3331703 100644
--- a/libc/stdio/getline.c
+++ b/libc/stdio/getline.c
@@ -22,6 +22,7 @@
*/
#include <stddef.h>
+#include <sys/types.h>
#define __USE_GNU
#include <stdio.h>
diff --git a/libc/stdio/perror.c b/libc/stdio/perror.c
index 04cd688d8..33b5e08b0 100644
--- a/libc/stdio/perror.c
+++ b/libc/stdio/perror.c
@@ -1,3 +1,4 @@
+#include <string.h>
#include <stdio.h>
#include <errno.h>
diff --git a/libc/stdio/scanf.c b/libc/stdio/scanf.c
index 0b9e8007c..c8b487ed1 100644
--- a/libc/stdio/scanf.c
+++ b/libc/stdio/scanf.c
@@ -33,6 +33,7 @@
#include <stdlib.h>
#include <unistd.h>
+#define __USE_ISOC99
#include <stdio.h>
#include <ctype.h>
#include <string.h>