kripken/emscripten — pull request #1028 by arlolra (2013-04-04 02:31:21+00:00)
Title: Combine netdb.h

Having both `netdb.h` and `net/netdb.h` was causing some warnings and errors:

> warning: implicit declaration of function 'getaddrinfo' is invalid in C99
> error: incomplete definition of type 'struct addrinfo'
> etc.

The change of `AF_UNSPEC` was necessary for me, perhaps not others.