scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit f6c0db7557a8e8663fa06d87b805e1c9e41b58c0
parent e82841a596e96f1ed950180a4ba9499f320c7a23
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 16 Jan 2019 22:34:33 +0000

[libc] Include libc.h in files using _flsbuf

This definitions was lost.

Diffstat:
Msrc/libc/stdio/__putc.c | 1+
Msrc/libc/stdio/fclose.c | 2++
Msrc/libc/stdio/fseek.c | 3+++
Msrc/libc/stdio/setvbuf.c | 2++
4 files changed, 8 insertions(+), 0 deletions(-)

diff --git 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 diff --git 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 diff --git 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 diff --git 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