#include <sys/socket.h>
#include <resolv.h>

main(){
    int sd;
    sd=socket(PF_INET,SOCK_STREAM,0);
    return(0);
}

試しにこのようにして、Socket関数を呼び出して見たんですが、Linuxでは、コンパイル通るのですが、FreeBSDだと通りません。
/usr/include/resolv.h:104: error: field `nsaddr_list' has incomplete type
/usr/include/resolv.h:114: error: field `addr' has incomplete type
/usr/include/resolv.h:129: error: field `ina' has incomplete type
/usr/include/resolv.h:130: error: field `in6a' has incomplete type
エラーはこのように出ます。

FreeBSDの場合、他にヘッダファイルを指定しないといけないのでしょうか?