summary refs log tree commit diff stats
path: root/lib/posix
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 /lib/posix
parente0f57ee1a1757c6c572a5e0054dd2f03a4670bed (diff)
downloadNim-ac4201132d547d565a87633ef7729dfb12b826ee.tar.gz
Fix android compile time error
Diffstat (limited to 'lib/posix')
-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 {.
61'>161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235