X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.3 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
Message-ID: <4F67585C.5060605@gmail.com>
Date: Mon, 19 Mar 2012 17:01:32 +0100
From: marco atzeri <marco.atzeri@gmail.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120312 Thunderbird/11.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Attempt to build aplus-fsf-4.22 (EnumTable)
References: <CABn7SNaBsAEnNg4j9yNQa+4E7iWCmCakRbzqHZi0dN8Ayr95PA@mail.gmail.com>
In-Reply-To: <CABn7SNaBsAEnNg4j9yNQa+4E7iWCmCakRbzqHZi0dN8Ayr95PA@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 3/19/2012 3:51 PM, Tom Szczesny wrote:
> Well, of course, you are correct.  It did not work.
> It was like a sinkhole.
> For each header file that I included in the aplus source,
> an additional header file was required.
>
> You asked what definitions were initially required.  They are:
>
> FIOCLEX
> FIONCLEX
> FIOSETOWN
> FIOGETOWN
> TIOCOUTQ
> TIOCSTI
>
> I assume from your question, that I should declare these
> variables in the source, rather than bring in the header files
> that the source is expecting.
>

Tom,
FYI, in the past the xmon maintainer used
this strategy, to overcome the lack of FIOCLEX/FIONCLEX

#if defined(SYSV) || defined(__CYGWIN__)
      fcntl(ConnectionSocket, F_SETFD, FD_CLOEXEC);
#else
      ioctl(ConnectionSocket, FIOCLEX, 0);
#endif


#if defined(SYSV) || defined(__CYGWIN__)
      fcntl(ClientFD, F_SETFD, FD_CLOEXEC);
#else
      ioctl(ClientFD, FIOCLEX, 0);
#endif


Regards
Marco



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

