I already had problem with this, I am using here:

#include <sys/socket.h>

edm.