scc

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

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

libc: Fix function prototype (arm64) - 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/arm64/linux/_open.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/libc/arch/arm64/linux/_open.c b/src/libc/arch/arm64/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) +_open(const char *fname, int flags, int mode) { - return _openat(AT_FDCWD, fname, flags); + return _openat(AT_FDCWD, fname, flags, mode); }