#include <stdio.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
int main(int argc, char *argv[])
{
struct sockaddr_in sin;
int fd;
return connect(fd, (struct sockaddr *)&sin, sizeof(sin));
}
#include <netinet/in.h>を抜くとエラーになる、Vine4.2。とはいえ、OpenBSDでもエラーになるんだが…