$OpenBSD: patch-chrome_browser_shell_integration_linux_cc,v 1.2 2011/02/08 09:43:02 espie Exp $
--- chrome/browser/shell_integration_linux.cc.orig	Fri Jan 21 10:20:26 2011
+++ chrome/browser/shell_integration_linux.cc	Sun Jan 23 23:27:31 2011
@@ -119,6 +119,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;
@@ -147,6 +149,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,
