diff options
author | tormund <tormund@zeoalliance.com> | 2016-06-07 19:24:23 +0300 |
---|---|---|
committer | tormund <tormund@zeoalliance.com> | 2016-06-07 19:24:23 +0300 |
commit | ac4201132d547d565a87633ef7729dfb12b826ee (patch) | |
tree | 35f753e2ee7edd09dd84c010581a46cb11dc3318 /lib/posix | |
parent | e0f57ee1a1757c6c572a5e0054dd2f03a4670bed (diff) | |
download | Nim-ac4201132d547d565a87633ef7729dfb12b826ee.tar.gz |
Fix android compile time error
Diffstat (limited to 'lib/posix')
-rw-r--r-- | lib/posix/posix.nim | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/posix/posix.nim b/lib/posix/posix.nim index bb42d6902..6a13eec28 100644 --- a/lib/posix/posix.nim +++ b/lib/posix/posix.nim @@ -2393,8 +2393,14 @@ proc sigrelse*(a1: cint): cint {.importc, header: "<signal.h>".} proc sigset*(a1: int, a2: proc (x: cint) {.noconv.}) {. importc, header: "<signal.h>".} proc sigsuspend*(a1: var Sigset): cint {.importc, header: "<signal.h>".} -proc sigtimedwait*(a1: var Sigset, a2: var SigInfo, + +when defined(android): + proc sigtimedwait*(a1: var Sigset, a2: var SigInfo, + a3: var Timespec, sigsetsize: csize = sizeof(culong)*2): cint {.importc: "__rt_sigtimedwait", header:"<signal.h>".} +else: + proc sigtimedwait*(a1: var Sigset, a2: var SigInfo, a3: var Timespec): cint {.importc, header: "<signal.h>".} + proc sigwait*(a1: var Sigset, a2: var cint): cint {. importc, header: "<signal.h>".} proc sigwaitinfo*(a1: var Sigset, a2: var SigInfo): cint {. |