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 Reply-To: From: "Norman Vine" To: Subject: RE: Compiling irda socket code Date: Wed, 26 Feb 2003 08:27:12 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal In-Reply-To: <81A52CA9CE040948809DAD901A413C14027E4BF9@seupdms001.dia.eu.pnu.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Virus-Scanned: Cape.Com VirusScan, no known virus found Ohgren, Daniel writes: > > Now i almost pinpointed my problem to: > > 108: struct sockaddr_irda { > 109: sa_family_t sir_family; /* AF_IRDA */ > 110: __u8 sir_lsap_sel; /* LSAP selector */ > 111: __u32 sir_addr; /* Device address */ > 112: char sir_name[25]; /* Usually :IrDA:TinyTP > */ > 113: }; > > This snippet don't compile in Cygwin with the following output: > > /usr/include/linux/irda.h:109: parse error before "sa_family_t" > Any ideas? A google on 'sa_family_t' yielded this patch to distcc for Cygwin http://lists.samba.org/pipermail/distcc/2002q3/000051.html basically +#ifndef HAVE_SA_FAMILY_T +typedef int sa_family_t; +#endif HTH Norman -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/