summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortormund <tormund@zeoalliance.com>2016-06-07 19:24:23 +0300
committertormund <tormund@zeoalliance.com>2016-06-07 19:24:23 +0300
commitac4201132d547d565a87633ef7729dfb12b826ee (patch)
tree35f753e2ee7edd09dd84c010581a46cb11dc3318
parente0f57ee1a1757c6c572a5e0054dd2f03a4670bed (diff)
downloadNim-ac4201132d547d565a87633ef7729dfb12b826ee.tar.gz
Fix android compile time error
-rw-r--r--lib/posix/posix.nim8
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 {.