Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Dec 2012 12:38:06 -0200
From:      Jan Beich <jbeich@tormail.org>
To:        freebsd-chromium@freebsd.org
Subject:   openat, O_DIRECTORY, shell_integration_linux.cc
Message-ID:  <1Tns6P-000IsX-DH@internal.tormail.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1Tns6P-000IsX-DH>