blob: ec799cd0755bd0b3d6be578785eaf3c421df8356 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- tools/gn/base/files/file_util_posix.cc.orig 2019-11-19 01:42:28 UTC
+++ tools/gn/base/files/file_util_posix.cc
@@ -254,7 +254,7 @@ bool ReplaceFile(const FilePath& from_path,
#endif // !defined(OS_NACL_NONSFI)
bool CreateLocalNonBlockingPipe(int fds[2]) {
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
return pipe2(fds, O_CLOEXEC | O_NONBLOCK) == 0;
#else
int raw_fds[2];
|