freebsd-ports/www/chromium/files/patch-chrome__browser__shell_integration_linux.cc
Rene Ladan 9855b481e6 Update to 20.0.1132.57
Submitted by:	George Liaskos
2012-07-12 09:19:26 +00:00

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;
}