The file src/daemon.c contains a number of routines that are dependent on the local networking environment. The version supplied assumes you have BSD style sockets.