macos build fix
This commit is contained in:
@@ -66,7 +66,11 @@ class StdCapture
|
||||
ret = pipe(pipes, 1024 * 1024 * 20, O_BINARY); // 20 MB
|
||||
#else
|
||||
ret = pipe(pipes) == -1;
|
||||
#ifdef __APPLE__
|
||||
fcntl(*pipes, F_PREALLOCATE, 1024 * 1024 * 20);
|
||||
#else
|
||||
fcntl(*pipes, F_SETPIPE_SZ, 1024 * 1024 * 20);
|
||||
#endif
|
||||
#endif
|
||||
fd_blocked = (errno == EINTR || errno == EBUSY);
|
||||
if (fd_blocked)
|
||||
|
||||
Reference in New Issue
Block a user