This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: Compiling irda socket code
- From: "Norman Vine" <nhv at cape dot com>
- To: <cygwin at cygwin dot com>
- Date: Wed, 26 Feb 2003 08:27:12 -0500
- Subject: RE: Compiling irda socket code
- Reply-to: <nhv at cape dot com>
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 <service>: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/