Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Subject: RE: sys/socket.h problem in Cygwin Date: Thu, 14 Aug 2003 08:42:26 -0700 Message-ID: <289D5E887973504394DF3D5ACFFE07BEBD7EAE@sncexmb1.corp.nai.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: To: X-OriginalArrivalTime: 14 Aug 2003 15:41:56.0004 (UTC) FILETIME=[9746D640:01C3627A] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h7EFgRL19244 Thanks. -----Original Message----- From: Corinna Vinschen [mailto:corinna-cygwin AT cygwin DOT com] Sent: Thursday, August 14, 2003 10:05 AM To: cygwin AT cygwin DOT com Subject: Re: sys/socket.h problem in Cygwin On Thu, Aug 14, 2003 at 07:44:43AM -0700, Jack_Goral AT NAI DOT com wrote: > sys/socket.h includes cygwin/socket.h, this includes asm/socket.h which includes cygwin/if.h. > > This way "struct sockaddr_in" is not there because it is defined in cygwin/in.h not cygwin/if.h. > > Because of that I must do: > > #include > #include > > instead of only: > > #include > > Is this a bug in Cygwin include headers for GCC 3.2 or I am doing something wrong? AFAIK that's pretty normal. On Linux -- as on Cygwin -- you'll have to include netinet/in.h. So just replace #include by #include and it should be fine. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/