From 623441685d94fa366edee5fec46f291bc146237e Mon Sep 17 00:00:00 2001 From: Erik Dubbelboer Date: Sat, 28 Apr 2012 18:16:11 +0200 Subject: [PATCH] test-spawn failed to build on linux - added missing header file - converted c++ style comment to c style comment --- test/test-spawn.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/test-spawn.c b/test/test-spawn.c index fbe92335..ccb9538f 100644 --- a/test/test-spawn.c +++ b/test/test-spawn.c @@ -25,6 +25,11 @@ #include #include +#ifndef _WIN32 +#include +#endif + + static int close_cb_called; static int exit_cb_called; static uv_process_t process; @@ -548,7 +553,7 @@ TEST_IMPL(spawn_setuid_setgid) { init_process_options("spawn_helper1", exit_cb); - // become the "nobody" user. + /* become the "nobody" user. */ struct passwd* pw; pw = getpwnam("nobody"); ASSERT(pw != NULL);