[PATCH] Various MinGW build fixes

Jon TURNEY jon.turney at dronecode.org.uk
Thu Apr 9 06:28:52 PDT 2015



On 28/03/2015 15:14, David Macek wrote:
> On 19. 3. 2015 15:18, Jon TURNEY wrote:
>> Hopefully uncontroversial fixes for building with the current MinGW-w64 toolchain.
>>
>> lib/libICE:
>>    Include process.h for getpid() on Win32
>>
>> lib/libSM:
>>    Include process.h for getpid() on Win32
>>
>> lib/libXt:
>>    Include process.h for getpid() on Win32
>
> AFAIK including <unistd.h> unconditionally would the portable way of doing this.

I guess technically that isn't portable to Windows as that header isn't 
provided by the MS compiler.

But MinGW-w64 provides a unistd.h, and it seems that VcXsrv provides 
it's own, so, yes, that is the correct way to do this...




More information about the xorg-devel mailing list