$OpenBSD: patch-chrome_browser_shell_integration_linux_cc,v 1.8 2012/07/10 09:22:34 robert Exp $
--- chrome/browser/shell_integration_linux.cc.orig	Sat Jul  7 15:52:44 2012
+++ chrome/browser/shell_integration_linux.cc	Sat Jul  7 15:58:16 2012
@@ -122,6 +122,8 @@ bool CreateShortcutOnDesktop(const FilePath& shortcut_
   if (!PathService::Get(chrome::DIR_USER_DESKTOP, &desktop_path))
     return false;
 
+#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 false;
@@ -150,6 +152,7 @@ bool CreateShortcutOnDesktop(const FilePath& shortcut_
 
   if (HANDLE_EINTR(close(desktop_fd)) < 0)
     PLOG(ERROR) << "close";
+#endif
 
   return true;
 }
