$NetBSD: patch-ac,v 1.1.1.1 2010/02/13 16:22:14 tnn2 Exp $ --- test/libnix/nix/nix-cred.c.orig 2010-02-13 15:20:39.000000000 +0000 +++ test/libnix/nix/nix-cred.c @@ -166,7 +166,11 @@ nix_setregid(nix_gid_t gid, nix_gid_t eg int nix_reboot(int howto, nix_env_t *env) { +#if defined(__NetBSD__) + if (reboot(howto, "") != 0) { +#else if (reboot(howto) != 0) { +#endif nix_env_set_errno(env, errno); return (-1); }