X-Git-Url: https://git.llucax.com/software/druntime.git/blobdiff_plain/cbb7919d51425b5dea3aa5189228d3088ca20dfc..bcf5b1203472d877e1f3560ca595cc1341c3783b:/src/common/core/thread.d diff --git a/src/common/core/thread.d b/src/common/core/thread.d index 65b8df9..ef8984b 100644 --- a/src/common/core/thread.d +++ b/src/common/core/thread.d @@ -84,8 +84,8 @@ version( Windows ) { private { - import stdc.stdint : uintptr_t; // for _beginthreadex decl below - import sys.windows.windows; + import core.stdc.stdint : uintptr_t; // for _beginthreadex decl below + import core.sys.windows.windows; const DWORD TLS_OUT_OF_INDEXES = 0xFFFFFFFF; @@ -151,13 +151,14 @@ else version( Posix ) { private { - import stdc.posix.semaphore; - import stdc.posix.pthread; - import stdc.posix.signal; - import stdc.posix.time; - import stdc.errno; + import core.sys.posix.semaphore; + import core.sys.posix.pthread; + import core.sys.posix.signal; + import core.sys.posix.time; + import core.stdc.errno; extern (C) int getErrno(); + version( GNU ) { import gcc.builtins; @@ -2256,9 +2257,9 @@ private version( Posix ) { - import stdc.posix.unistd; // for sysconf - import stdc.posix.sys.mman; // for mmap - import stdc.posix.stdlib; // for malloc, valloc, free + import core.sys.posix.unistd; // for sysconf + import core.sys.posix.sys.mman; // for mmap + import core.sys.posix.stdlib; // for malloc, valloc, free version( AsmX86_Win32 ) {} else version( AsmX86_Posix ) {} else @@ -2270,7 +2271,7 @@ private // a version identifier. Please note that this is considered // an obsolescent feature according to the POSIX spec, so a // custom solution is still preferred. - import stdc.posix.ucontext; + import core.sys.posix.ucontext; } }