delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Date: | Thu, 14 Aug 2003 17:05:15 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: sys/socket.h problem in Cygwin |
Message-ID: | <20030814150515.GR3101@cygbert.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <289D5E887973504394DF3D5ACFFE07BEBD7EAB AT sncexmb1 DOT corp DOT nai DOT org> |
Mime-Version: | 1.0 |
In-Reply-To: | <289D5E887973504394DF3D5ACFFE07BEBD7EAB@sncexmb1.corp.nai.org> |
User-Agent: | Mutt/1.4.1i |
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 <cygwin/in.h> > #include <sys/socket.h> > > instead of only: > > #include <sys/socket.h> > > 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 <cygwin/in.h> by #include <netinet/in.h> 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |