Fixed includes for pthread types.

This commit is contained in:
Yuriy Glukhov 2016-03-04 00:08:47 +02:00
commit 39e797080d

View file

@ -74,11 +74,14 @@ when defined(Windows):
else: else:
type type
SysLock {.importc: "pthread_mutex_t", pure, final, SysLock {.importc: "pthread_mutex_t", pure, final,
header: "<sys/types.h>".} = object header: """#include <sys/types.h>
#include <pthread.h>""".} = object
SysLockAttr {.importc: "pthread_mutexattr_t", pure, final SysLockAttr {.importc: "pthread_mutexattr_t", pure, final
header: "<sys/types.h>".} = object header: """#include <sys/types.h>
#include <pthread.h>""".} = object
SysCond {.importc: "pthread_cond_t", pure, final, SysCond {.importc: "pthread_cond_t", pure, final,
header: "<sys/types.h>".} = object header: """#include <sys/types.h>
#include <pthread.h>""".} = object
SysLockType = distinct cint SysLockType = distinct cint
proc SysLockType_Reentrant: SysLockType = proc SysLockType_Reentrant: SysLockType =
@ -115,4 +118,3 @@ else:
proc deinitSysCond(cond: var SysCond) {.noSideEffect, proc deinitSysCond(cond: var SysCond) {.noSideEffect,
importc: "pthread_cond_destroy", header: "<pthread.h>".} importc: "pthread_cond_destroy", header: "<pthread.h>".}