delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/08/14/10:45:25

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
X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: sys/socket.h problem in Cygwin
Date: Thu, 14 Aug 2003 07:44:43 -0700
Message-ID: <289D5E887973504394DF3D5ACFFE07BEBD7EAB@sncexmb1.corp.nai.org>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: <Jack_Goral AT NAI DOT com>
To: <cygwin AT cygwin DOT com>
X-OriginalArrivalTime: 14 Aug 2003 14:44:13.0654 (UTC) FILETIME=[878E2760:01C36272]
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h7EEjOP03442

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?

Jack Goral




--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019