Subject: Re: Version 1.8.1 does not compile on Cygwin 1.7.14

From: Torsten Bögershausen <[email-masked]>
Date: Sun, 06 Jan 2013 10:42:03 +0100

On 06.01.13 10:32, Jonathan Nieder wrote:
> Hi,
> 
> Torsten Bögershausen wrote:
>>> Stephen & Linda Smith wrote:
> 
>>>> git co 9fca6c && make all
>>>> ...   The make errored out as before
> [...]
>>>> git co 9fca6c^  && make all
>>>> ... and this compiles to completion
>>>>
>>>> CYGWIN_NT-5.1 WINXPMACHINE 1.7.14(0.260/5/3) 2012-04-24 17:22 
>>>> i686 Cygwin
> [...]
>> You can either upgrade to cygwin 1.17 or higher.
>> Or, if that is really not possible (because you are sitting on a production machine,
>> where no changes are allowed),
>>
>> You can enable this in Makefile: 
>> CYGWIN_V15_WIN32API = YesPlease
> 
> What I don't understand is why commit 9fca6c would have had any
> effect at all.  Since 1.7.14 doesn't match /^1\.[1-6]\./, wouldn't
> the setting to avoid including <sys/stat.h> and <sys/errno.h> be
> unset both before and after that commit?
> 
> Stephen, what is the content of your config.mak?
> 
> Curious,
> Jonathan
The short version:
Cygwin versions  1.7.1 up to 1.7.16 use the same header files as cygwin 1.5

The change in cygwin came in in 1.7.17, 
(and from that version of cygwin we need commit 9fca6c to compile git)

Currently we can not compile git under cygwin 1.7.1 .. 1.7.16 :-(
As "everybody" running cygwin 1.7 seems to update to the latest,

I don't know if we want to improve the Makefile to enable 
CYGWIN_V15_WIN32API = YesPlease 
for cygwin versions 1.7.1 .. 1.7.16 (which are outdated)

/Torsten

http://git.661346.n2.nabble.com/PATCH-Rename-V15-MINGW-HEADERS-into-CYGWIN-OLD-WINSOCK-HEADERS-td7571449.html