openbsd-ports/www/chromium/patches/patch-base_base_paths_linux_cc
2011-09-19 08:55:26 +00:00

24 lines
867 B
Plaintext

$OpenBSD: patch-base_base_paths_linux_cc,v 1.6 2011/09/19 08:55:26 robert Exp $
--- base/base_paths_linux.cc.orig Tue Aug 23 10:28:48 2011
+++ base/base_paths_linux.cc Wed Aug 24 10:54:22 2011
@@ -16,7 +16,7 @@
#include "base/path_service.h"
#include "base/nix/xdg_util.h"
-#if defined(OS_FREEBSD)
+#if defined(OS_FREEBSD) || defined(OS_OPENBSD)
#include <sys/param.h>
#include <sys/sysctl.h>
#elif defined(OS_SOLARIS)
@@ -57,6 +57,10 @@ bool PathProviderPosix(int key, FilePath* result) {
}
bin_dir[strlen(bin_dir)] = 0;
*result = FilePath(bin_dir);
+ return true;
+#elif defined(OS_OPENBSD)
+ *result = FilePath("/usr/local/chrome/chrome");
+ //*result = FilePath("/home/pobj/chromium-11.0.696.71/chromium-11.0.696.71/out/Release/chrome");
return true;
#elif defined(OS_SOLARIS)
char bin_dir[PATH_MAX + 1];