blob: 616e6a71f124f0e797a0459b88f79b245a18bb5e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
--- crypto/nss_util.cc.orig 2016-10-06 04:02:19.000000000 +0300
+++ crypto/nss_util.cc 2016-10-13 07:19:30.151634000 +0300
@@ -20,7 +20,7 @@
#include "base/threading/thread_task_runner_handle.h"
#include "crypto/nss_util_internal.h"
-#if defined(OS_OPENBSD)
+#if defined(OS_BSD)
#include <sys/mount.h>
#include <sys/param.h>
#endif
@@ -150,10 +150,10 @@
base::FileSystemType fs_type = base::FILE_SYSTEM_UNKNOWN;
if (base::GetFileSystemType(database_dir, &fs_type))
db_on_nfs = (fs_type == base::FILE_SYSTEM_NFS);
-#elif defined(OS_OPENBSD)
+#elif defined(OS_BSD)
struct statfs buf;
if (statfs(database_dir.value().c_str(), &buf) == 0)
- db_on_nfs = (strcmp(buf.f_fstypename, MOUNT_NFS) == 0);
+ db_on_nfs = (strcmp(buf.f_fstypename, "nfs") == 0);
#else
NOTIMPLEMENTED();
#endif
|