scc

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

commit 27e63021261aee56e2195e328c9e4ab61bce8870
parent 003430be651c10b45a2baafa37d2e2dee5ff594f
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