blob: 2ea931fbf0a858f4a3c2ae2c469e85a6888cb37b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-ipc_chromium_src_base_file__util__posix.cc,v 1.1.4.1 2013/08/24 19:45:15 tron Exp $
--- ipc/chromium/src/base/file_util_posix.cc.orig 2013-06-18 18:47:18.000000000 +0000
+++ ipc/chromium/src/base/file_util_posix.cc
@@ -33,7 +33,7 @@
#include "base/time.h"
// FreeBSD/OpenBSD lacks stat64, but its stat handles files >2GB just fine
-#if defined(OS_FREEBSD) || defined(OS_OPENBSD)
+#ifndef HAVE_STAT64
#define stat64 stat
#endif
@@ -392,7 +392,7 @@ bool CreateTemporaryFileName(FilePath* p
FILE* CreateAndOpenTemporaryShmemFile(FilePath* path) {
FilePath directory;
if (!GetShmemTempDir(&directory))
- return false;
+ return NULL;
return CreateAndOpenTemporaryFileInDir(directory, path);
}
|