Conflicting definition of THREAD_INFORMATION_CLASS?

Corinna Vinschen corinna-cygwin@cygwin.com
Fri Oct 25 18:41:00 GMT 2013


On Oct 25 18:16, Bryan Chua wrote:
> I am trying to build cygwin DLL and I keep running into a conflicting definition of THREAD_INFORMATION_CLASS:
> 
> From /usr/include/w32api/winbase.h
> typedef enum _THREAD_INFORMATION_CLASS {
>   ThreadMemoryPriority,
>   ThreadAbsoluteCpuPriority,
>   ThreadInformationClassMax
> } THREAD_INFORMATION_CLASS;
> 
> From src/winsup/cygwin/ntdll.h
> typedef enum _THREAD_INFORMATION_CLASS
> {
>   ThreadBasicInformation = 0,
>   ThreadTimes = 1,
>   ThreadImpersonationToken = 5
> } THREAD_INFORMATION_CLASS, *PTHREAD_INFORMATION_CLASS;
> 
> Which one is correct, or have I installed too many/too few packages?

winbase.h is correct.  ntdll.h should use the officially correct type
name THREADINFOCLASS.  Fixed in CVS.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-developers/attachments/20131025/54640b7d/attachment.sig>


More information about the Cygwin-developers mailing list