> Btw , even "internal/sockets.h " has " #include<sys/socket.h>". Yes, but after #include <netdb.h>. OTOH, netdb.h should #include<sys/socket.h>; can you send a download link for the cross compilation toolkit you are using?