Port to FreeBSD.
--
Change-Id: I4e65cc583e758d2f7e45209ffcb37f6a871e2ed7
Reviewed-on: https://bazel-review.git.corp.google.com/#/c/1840
MOS_MIGRATED_REVID=101462155
diff --git a/src/main/cpp/BUILD b/src/main/cpp/BUILD
index dc1b732..c604272 100644
--- a/src/main/cpp/BUILD
+++ b/src/main/cpp/BUILD
@@ -8,6 +8,10 @@
"blaze_util_darwin.cc",
"blaze_util_posix.cc",
],
+ "//src:freebsd": [
+ "blaze_util_freebsd.cc",
+ "blaze_util_posix.cc",
+ ],
"//conditions:default": [
"blaze_util_linux.cc",
"blaze_util_posix.cc",
@@ -36,6 +40,9 @@
linkopts = select({
"//src:darwin": [
],
+ "//src:freebsd": [
+ "-lprocstat",
+ ],
"//conditions:default": [
"-lrt",
],