shithub: riscv

Download patch

ref: 1c4c82277ea368739af6a4666ae530bbcfae71cb
parent: 8ca102d42ed7b1c0ef687365ec32dca2ebd18faa
author: cinap_lenrek <[email protected]>
date: Tue May 12 20:17:07 EDT 2020

ape: fix name clash, have to use _SLEEP syscall instead of ape sleep in plan9 code (thanks jamos)

this fixes etimer() from ape built libdraw as posix sleep() uses
seconds while plan9 uses miliseconds.

--- a/sys/src/ape/lib/9/libc.h
+++ b/sys/src/ape/lib/9/libc.h
@@ -150,6 +150,7 @@
 #define mallocz _MALLOCZ
 #define nsec	_NSEC
 #define iounit	_IOUNIT
+#define sleep	_SLEEP
 
 #define getwd(buf,len)	getcwd(buf,len)
 #define postnote(who,pid,note)	kill(pid,SIGTERM)