$NetBSD: patch-options.c,v 1.1 2018/10/22 14:58:14 jperkin Exp $ SunOS needs sockio.h for SIOCGIFFLAGS. --- options.c.orig 2014-01-19 20:16:43.000000000 +0000 +++ options.c @@ -18,6 +18,9 @@ #include #include #include +#ifdef __sun +#include +#endif #include "iftop.h" #include "options.h"