Wireshark-users: Re: [Wireshark-users] dragonflyBSD compiling failing from trunk
From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Sun, 22 May 2016 19:24:12 -0700
On May 22, 2016, at 7:10 PM, Guy Harris <guy@xxxxxxxxxxxx> wrote:

> It looks as if OS X's <arpa/inet.h> include <netinet/in.h>, but DragonFly BSD's <arpa/inet.h> doesn't.  Presumably the Linuxes on which we build also have <arpa/inet.h> including something that eventually causes <netinet/in.h> to be included, and whatever is necessary happens on Windows with MSVC's header files as well.
> 
> But it's a bug to rely on that, so I've checked in a change to explicitly include <netinet/in.h>.

And it might be necessary to explicitly include <sys/socket.h> as well, so I've checked in *another* change to do so.  Do "git pull"s until you have a version of wsutil/interface.c that includes both <sys/socket.h> and <netinet/in.h>.