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://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
Message-ID: | <4173BE20.9060604@x-ray.at> |
Date: | Mon, 18 Oct 2004 14:59:12 +0200 |
From: | Reini Urban <rurban AT x-ray DOT at> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.8a3) Gecko/20040817 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: minires-devel-0.97-1: resolv.h fails |
References: | <41731C28 DOT 8060109 AT x-ray DOT at> <20041018110318 DOT GC26101 AT cygbert DOT vinschen DOT de> |
In-Reply-To: | <20041018110318.GC26101@cygbert.vinschen.de> |
X-IsSubscribed: | yes |
--------------060405060200060004060103 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit minires maintainer: so please consider the attached patch for minires-devel (both versions fail) Corinna Vinschen schrieb: > On Oct 18 03:28, Reini Urban wrote: > >>minires-devel-0.97-1: >> #include <resolv.h> fails suddenly. >> >>Apparently /usr/include/resolv.h misses the definition for >>sockaddr_in, which is defined in <cygwin/in.h> >> >>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 <sys/socket.h> > 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 <netinet/in.h> > struct sockaddr_in si; > EOF > $ gcc -c x.c > $ -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ --------------060405060200060004060103 Content-Type: text/plain; name="minires.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="minires.patch" 2004-10-18 14:52:56 rurban AT x-ray DOT at * resolv.h: declare sockaddr_in --- usr/include/resolv.h.orig 2004-03-02 05:33:04.000000000 +0200 +++ usr/include/resolv.h 2004-10-18 14:55:31.241878400 +0200 @@ -64,6 +64,7 @@ #endif #include <sys/cdefs.h> #include <sys/socket.h> +#include <netinet/in.h> #include <stdio.h> #include <arpa/nameser.h> --------------060405060200060004060103 Content-Type: text/plain; charset=us-ascii -- 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/ --------------060405060200060004060103--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |