Date: Wed, 12 Jul 2000 19:08:47 -0700 From: "Wilbert de Graaf" <wilbertdg@hetnet.nl> To: "FreeBSD-hackers" <FreeBSD-hackers@FreeBSD.ORG> Subject: #include question: <netinet/in.h> requires <sys/socket.h> Message-ID: <095401bfec6f$495ba110$0a00a8c0@alias>
next in thread | raw e-mail | index | archive | help
Maybe obvious to some of you, but I had to define two new structures (as described in an ietf draft) in <netinet/in.h>. This in order to be able to support igmpv3 / multicast source filters. Anyway, these structures require 'struct sockaddr_storage' which is defined in <sys/socket.h>. When I compiled the code, it stopped since several source files only include <netinet/in.h> and not <sys/socket.h>. To solve this I added these 3 lines #ifndef _SYS_SOCKET_H #include <sys/socket.h> #endif somewhere in the top of <netinet/in.h>. I want to verify if this is indeed the best way to solve it ? - Wilbert To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?095401bfec6f$495ba110$0a00a8c0>