On Mar 31 22:34, Yaakov S wrote: > Can anyone explain why the attached STC returns an EAFNOSUPPORT? > > > Yaakov > > #pragma CCOD:script no > > #include <errno.h> > #include <string.h> > #include <stdio.h> > #include <sys/socket.h> > > int > main(void) > { > if (socket(AF_INET6, SOCK_STREAM, 0) < 0) { > printf("ERROR: %s\n", strerror(errno)); > return 1; > } else { > printf("Success!\n"); > return 0; > } > }
WJFFM. Do you have a IPv6 enabled machine? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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/