Subject: Re: bug#14821: Build broken on 64-bit Cygwin starting with bzr revision 113315

From: Ken Brown <[email-masked]>
Date: Tue, 09 Jul 2013 13:13:26 -0400

On 7/9/2013 1:07 PM, Eli Zaretskii wrote:
>> Date: Tue, 09 Jul 2013 12:46:44 -0400
>> From: Ken Brown <[email-masked]>
>> CC: [email-masked], [email-masked]
>>
>> the symbol 'setmode' is no longer exported in 64bit Cygwin.
>
> Are you saying that there's no way of reading files in text mode while
> removing CR characters from CR-LF pairs?
>
>> That's
>> what caused the build failure.  And the code in pipe2.c that calls
>> setmode should never actually get executed on Cygwin anyway because of this:
>>
>>           int result = pipe2 (fd, flags);
>>           if (!(result < 0 && errno == ENOSYS))
>>             {
>>               have_pipe2_really = 1;
>>               return result;
>
> So define setmode away for Cygwin versions that don't have it.  Not
> everyone runs the bleeding edge.

The discussion is moot now.  Paul just submitted a patch to Gnulib that 
should fix it in a better way than what I suggested.

Ken