$NetBSD: patch-atf-c_tp__test.c,v 1.1 2013/02/27 22:21:14 jperkin Exp $ Need getopt.h on SunOS. --- atf-c/tp_test.c.orig 2012-02-26 16:44:57.000000000 +0000 +++ atf-c/tp_test.c @@ -29,6 +29,9 @@ #include #include +#ifdef __sun +#include +#endif #include