$NetBSD: patch-runonce_runonce.c,v 1.1 2013/03/04 17:33:01 othyro Exp $ Fixes "errno not declared in this scope" error. --- runonce/runonce.c.orig 2013-01-06 17:07:27.000000000 +0000 +++ runonce/runonce.c @@ -35,7 +35,11 @@ #include #include +#if defined(__NetBSD__) +#include +#else #include +#endif #include #include /* for kill() */