openat, O_DIRECTORY, shell_integration_linux.cc
Jan Beich
jbeich at tormail.org
Wed Dec 26 14:39:46 UTC 2012
Are there issues when using openat() et al. on FreeBSD 8.0 and forward?
Index: www/chromium/files/patch-chrome__browser__shell_integration_linux.cc
===================================================================
--- www/chromium/files/patch-chrome__browser__shell_integration_linux.cc (revision 309498)
+++ www/chromium/files/patch-chrome__browser__shell_integration_linux.cc (working copy)
@@ -4,7 +4,7 @@
if (!PathService::Get(chrome::DIR_USER_DESKTOP, &desktop_path))
return false;
-+#if !defined(OS_FREEBSD)
++#ifdef O_DIRECTORY
+// 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)
More information about the freebsd-chromium
mailing list