$OpenBSD: patch-chrome_browser_shell_integration_linux_cc,v 1.5 2011/09/19 08:55:26 robert Exp $
--- chrome/browser/shell_integration_linux.cc.orig	Tue Aug 23 10:29:13 2011
+++ chrome/browser/shell_integration_linux.cc	Wed Aug 24 10:54:22 2011
@@ -122,6 +122,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;
@@ -150,6 +152,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,
