Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

Commit

Permalink
Fix build fail on TizenRT (#123)
Browse files Browse the repository at this point in the history
'process' is not supported on these platforms.

libtuv-DCO-1.0-Signed-off-by: Hosung Kim [email protected]
  • Loading branch information
hs0225 authored and yichoi committed Aug 13, 2018
1 parent 602f3ba commit 46f0242
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/unix/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
#include <fcntl.h>
#include <poll.h>

#if !defined(__NUTTX__) && !defined(__TIZENRT__)

#if defined(__APPLE__) && !TARGET_OS_IPHONE
# include <crt_externs.h>
# define environ (*_NSGetEnviron())
Expand Down Expand Up @@ -583,3 +585,22 @@ void uv__process_close(uv_process_t* handle) {
}

#endif /* TUV_FEATURE_PROCESS */

#else /* defined(__NUTTX__) || defined(__TIZENRT__) */

int uv__make_pipe(int fds[2], int flags) {
if (pipe(fds))
return -errno;

uv__cloexec(fds[0], 1);
uv__cloexec(fds[1], 1);

if (flags & UV__F_NONBLOCK) {
uv__nonblock(fds[0], 1);
uv__nonblock(fds[1], 1);
}

return 0;
}

#endif /* !defined(__NUTTX__) && !defined(__TIZENRT__) */

0 comments on commit 46f0242

Please sign in to comment.