scc

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

commit 34c1e7286430a7a68609a5c9e1da52f08ba4a7f9
parent 53b02ba4e9ee011e6dcc927775fc28a99d89bd30
Author: Naveen Narayanan <zerous@simple-cc.org>
Date:   Mon, 15 Jun 2020 14:51:26 +0200

libc: Fix function prototype (arm32) - open, openat

The change was introduced in commit 687ff1f6 but went uncaught since
we didn't build scc for arm until now.

Signed-off-by: Naveen Narayanan <zerous@simple-cc.org>

Diffstat:
Msrc/libc/arch/arm32/linux/_open.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libc/arch/arm32/linux/_open.c b/src/libc/arch/arm32/linux/_open.c @@ -4,10 +4,10 @@ #define AT_FDCWD -100 -extern int _openat(int fd, const char *fname, int flags); +extern int _openat(int fd, const char *fname, int flags, int mode); int _open(const char *fname, int flags) { - return _openat(AT_FDCWD, fname, flags); + return _openat(AT_FDCWD, fname, flags, mode); }