ref: 27e63021261aee56e2195e328c9e4ab61bce8870
parent: 003430be651c10b45a2baafa37d2e2dee5ff594f
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed Jan 16 17:34:33 EST 2019
[libc] Include libc.h in files using _flsbuf This definitions was lost.
--- a/src/libc/stdio/__putc.c
+++ b/src/libc/stdio/__putc.c
@@ -1,6 +1,7 @@
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
+
#include "../libc.h"
int
--- a/src/libc/stdio/fclose.c
+++ b/src/libc/stdio/fclose.c
@@ -1,6 +1,8 @@
#include <stdlib.h>
#include <stdio.h>
+
#include "../syscall.h"
+#include "../libc.h"
#undef fclose
int
--- a/src/libc/stdio/fseek.c
+++ b/src/libc/stdio/fseek.c
@@ -1,5 +1,8 @@
#include <stdio.h>
+
#include "../syscall.h"
+#include "../libc.h"
+
#undef fseek
int
--- a/src/libc/stdio/setvbuf.c
+++ b/src/libc/stdio/setvbuf.c
@@ -1,6 +1,8 @@
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
+
+#include "../libc.h"
#undef setvbuf
int