$OpenBSD: patch-chrome_browser_shell_integration_linux_cc,v 1.4 2011/06/08 20:36:56 robert Exp $
--- chrome/browser/shell_integration_linux.cc.orig	Mon Jun  6 11:12:10 2011
+++ chrome/browser/shell_integration_linux.cc	Wed Jun  8 09:58:36 2011
@@ -118,6 +118,8 @@ void CreateShortcutOnDesktop(const FilePath& shortcut_
   if (!PathService::Get(chrome::DIR_USER_DESKTOP, &desktop_path))
     return;
 
+#if !defined(OS_OPENBSD)
+// 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;
@@ -146,6 +148,7 @@ void CreateShortcutOnDesktop(const FilePath& shortcut_
 
   if (HANDLE_EINTR(close(desktop_fd)) < 0)
     PLOG(ERROR) << "close";
+#endif  // !defined(OS_OPENBSD)
 }
 
 void CreateShortcutInApplicationsMenu(const FilePath& shortcut_filename,
