From b7627cb96ed1b6cecbe6a28f75c28850d46b98aa Mon Sep 17 00:00:00 2001 From: kris Date: Mon, 12 Jul 2010 22:01:34 +0000 Subject: [PATCH] Fix NetBSD compilation. These headers should really be included anyway, they aren't just some NetBSD quirk. --- libnetutil/netutil.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libnetutil/netutil.cc b/libnetutil/netutil.cc index d210b5d80..0f2449dcb 100644 --- a/libnetutil/netutil.cc +++ b/libnetutil/netutil.cc @@ -101,8 +101,16 @@ #include #include #include +#include #include +#include + +#ifndef NETINET_IN_SYSTEM_H /* why the HELL does OpenBSD not do this? */ +#include +#define NETINET_IN_SYSTEM_H +#endif + #if HAVE_NET_IF_H #ifndef NET_IF_H /* why doesn't OpenBSD do this? */ #include