diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-05-13 00:17:07 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-05-13 00:17:07 +0200 |
commit | 1c4c82277ea368739af6a4666ae530bbcfae71cb (patch) | |
tree | de60f811b12ac41aceab12e5181c06500d0e7954 /sys/src/ape | |
parent | 8ca102d42ed7b1c0ef687365ec32dca2ebd18faa (diff) |
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.
Diffstat (limited to 'sys/src/ape')
-rw-r--r-- | sys/src/ape/lib/9/libc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/src/ape/lib/9/libc.h b/sys/src/ape/lib/9/libc.h index 50f06df89..93fb26d13 100644 --- a/sys/src/ape/lib/9/libc.h +++ b/sys/src/ape/lib/9/libc.h @@ -150,6 +150,7 @@ extern vlong _NSEC(void); #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) |