openbsd-ports/www/chromium/patches/patch-base_base_paths_linux_cc

24 lines
801 B
Plaintext

$OpenBSD: patch-base_base_paths_linux_cc,v 1.5 2011/06/08 20:36:56 robert Exp $
--- base/base_paths_linux.cc.orig Wed Jun 8 10:15:34 2011
+++ base/base_paths_linux.cc Wed Jun 8 10:16:04 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>
#endif
@@ -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;
#endif
}