* Fix #12135 and fix #12109 - fix OpenBSD type defs

* Fix Mode definition as in #12132
This commit is contained in:
Euan 2019-11-11 15:18:08 +00:00 • committed by Andreas Rumpf
commit 7e689873e2
3 changed files with 570 additions and 0 deletions

View file

@ -132,6 +132,13 @@ else:
abi: array[56 div sizeof(clong), clong]
ThreadVarSlot {.importc: "pthread_key_t",
header: "<sys/types.h>".} = distinct cuint
elif defined(openbsd) and defined(amd64):
type
SysThread* {.importc: "pthread_t", header: "<pthread.h>".} = object
Pthread_attr {.importc: "pthread_attr_t",
header: "<pthread.h>".} = object
ThreadVarSlot {.importc: "pthread_key_t",
header: "<pthread.h>".} = cint
else:
type
SysThread* {.importc: "pthread_t", header: "<sys/types.h>".} = object