blob: 88e632aa3dc80d99e1ce5be7087515a35719be2f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- base/files/file_util_posix.cc.orig 2019-04-08 08:32:37 UTC
+++ base/files/file_util_posix.cc
@@ -407,7 +407,7 @@ bool CopyDirectoryExcl(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];
|