git: 9front

Download patch

ref: 6e30db6303c72892a1177b3880bd1f3bdef57487
parent: a3aa38e044886585cbc382307a2e29be37a6eb61
author: cinap_lenrek <cinap_lenrek@felloff.net>
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)
--