Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
test-spawn failed to build on linux
Browse files Browse the repository at this point in the history
- added missing header file
- converted c++ style comment to c style comment
  • Loading branch information
erikdubbelboer authored and piscisaureus committed Apr 28, 2012
1 parent fac3b68 commit 6234416
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/test-spawn.c
Expand Up @@ -25,6 +25,11 @@
#include <stdlib.h>
#include <string.h>

#ifndef _WIN32
#include <unistd.h>
#endif


static int close_cb_called;
static int exit_cb_called;
static uv_process_t process;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 6234416

Please sign in to comment.