shithub: scc

Download patch

ref: ad78b7323c3d0bbd562730c6e17814cec9c2d68a
parent: 7b2947de49547c2585eea8378d07b015465d0d6b
author: Naveen Narayanan <zerous@simple-cc.org>
date: Mon Jun 15 10:51:26 EDT 2020

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>

--- a/src/libc/arch/arm/linux/_open.c
+++ b/src/libc/arch/arm/linux/_open.c
@@ -7,7 +7,7 @@
 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, mode);
 }