20 lines
640 B
C++
20 lines
640 B
C++
--- chrome/browser/shell_integration_linux.cc.orig 2012-05-30 10:01:59.000000000 +0300
|
|
+++ chrome/browser/shell_integration_linux.cc 2012-06-05 21:54:31.000000000 +0300
|
|
@@ -122,6 +122,8 @@
|
|
if (!PathService::Get(chrome::DIR_USER_DESKTOP, &desktop_path))
|
|
return false;
|
|
|
|
+#if !defined(OS_FREEBSD)
|
|
+// BSD: Linux-specific calls like openat are used so defined out for BSD.
|
|
int desktop_fd = open(desktop_path.value().c_str(), O_RDONLY | O_DIRECTORY);
|
|
if (desktop_fd < 0)
|
|
return false;
|
|
@@ -150,7 +152,7 @@
|
|
|
|
if (HANDLE_EINTR(close(desktop_fd)) < 0)
|
|
PLOG(ERROR) << "close";
|
|
-
|
|
+#endif // OS_FREEBSD
|
|
return true;
|
|
}
|
|
|