bitcoin/bitcoin — pull request #1146 by drizztbsd (2012-04-25 12:16:39+00:00)
Title: We should include netinet/in.h to use sockaddr_in (POSIX.1-2001)

It's also needed to compile bitcoin under BSD systems without editing makefile and add -DBSD to CXXFLAGS.
Under linux it still compiles without any changes