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 Date: Mon, 18 Oct 2004 13:03:18 +0200 From: Corinna Vinschen To: cygwin Subject: Re: minires-devel-0.97-1: resolv.h fails Message-ID: <20041018110318.GC26101@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin References: <41731C28 DOT 8060109 AT x-ray DOT at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41731C28.8060109@x-ray.at> User-Agent: Mutt/1.4.2i On Oct 18 03:28, Reini Urban wrote: > minires-devel-0.97-1: > #include fails suddenly. > > Apparently /usr/include/resolv.h misses the definition for > sockaddr_in, which is defined in > > Have no clue why it suddenly fails. Anyone else? > These headers didn't change for years... > > Which file is supposed to include cygwin/in.h? I found nothing. netinet/in.h > On other systems it's defined in sys/socket.h, which is included in > resolv.h. On Linux as well as on Cygwin: $ cat > x.c << EOF #include struct sockaddr_in si; EOF $ gcc -c x.c x.c:2: error: storage size of `si' isn't known $ cat > x.c << EOF #include struct sockaddr_in si; EOF $ gcc -c x.c $ Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader 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/