On Wed, 30 May 2007, Ivo Smits wrote:
> Hello Davide,
>
> Somehow it fails to compile. Don't ask me why.. The system does support IPv6
> (and even has IPv6 connectivity, if the tunnel isn't down...)
> I would really like to have IPv6 in XMail..
> Btw, I tried to compile on 2 machines (one running Debian/Linux 'Lenny', the
> other one running 'Sarge').
>
> [EMAIL PROTECTED]:~$ gcc test.c
> test.c: In function 'main':
> test.c:5: error: storage size of 'ina' isn't known
> [EMAIL PROTECTED]:~$ cat test.c
> #include <sys/types.h>
> #include <sys/socket.h>
>
> int main(void) {
> struct sockaddr_in6 ina;
>
> socket(PF_INET6, SOCK_STREAM, 0);
> ina.sin6_family = AF_INET6;
>
> return 0;
> }
Duh! Sorry, add:
#include <netinet/in.h>
to the include files list ...
- Davide
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]