From 293c880f13482374a4f4964902c45d8421764ae9 Mon Sep 17 00:00:00 2001 From: Akshat Kumar Date: Tue, 12 Mar 2013 23:10:18 +0100 Subject: [PATCH] runtime: Plan 9, 32-bit: fix build by updating call to open() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit With the global redefinition of runtime·open by CL 7543043, we need to provide a third argument and remove the cast to the string. Fixes build on 386 version of Plan 9. R=khr, rsc, rminnich, ality CC=golang-dev https://golang.org/cl/7644047 --- src/pkg/runtime/time_plan9_386.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/runtime/time_plan9_386.c b/src/pkg/runtime/time_plan9_386.c index a29d45715c..fc08a90d6d 100644 --- a/src/pkg/runtime/time_plan9_386.c +++ b/src/pkg/runtime/time_plan9_386.c @@ -24,7 +24,7 @@ runtime·nanotime(void) // file descriptor) is roughly four times slower // in 9vx on a 2.16 GHz Intel Core 2 Duo. - if(fd < 0 && (fd = runtime·open((byte*)"/dev/bintime", OREAD|OCEXEC)) < 0) + if(fd < 0 && (fd = runtime·open("/dev/bintime", OREAD|OCEXEC, 0)) < 0) return 0; if(runtime·pread(fd, b, sizeof b, 0) != sizeof b) return 0; -- 2.50.0