http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48019
Sean McGovern <gseanmcg at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gseanmcg at gmail dot com --- Comment #9 from Sean McGovern <gseanmcg at gmail dot com> 2011-03-16 23:05:56 UTC --- Added sys/types.h and sys/socket.h to get AF_INET and SOCK_STREAM. $ gcc -o foo2 foo2.c -lsocket $ ./foo2 connect: Interrupted system call