diff options
author | Googler <noreply@google.com> | 2015-11-17 12:50:44 +0000 |
---|---|---|
committer | Damien Martin-Guillerez <dmarting@google.com> | 2015-11-17 13:37:33 +0000 |
commit | bdbf75f72833c1f95f612e3b86ce9aaefcce6358 (patch) | |
tree | 8be21ee17b40f175b7680d3c51f305709e378ce4 /src/main | |
parent | 10ad2d3955985f88c13461f395ea5b3dae5b6c23 (diff) |
Fix build on FreeBSD.
--
MOS_MIGRATED_REVID=108029812
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/cpp/blaze_util_freebsd.cc | 2 | ||||
-rw-r--r-- | src/main/tools/process-wrapper.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/main/cpp/blaze_util_freebsd.cc b/src/main/cpp/blaze_util_freebsd.cc index 2317795bbd..0b87a10299 100644 --- a/src/main/cpp/blaze_util_freebsd.cc +++ b/src/main/cpp/blaze_util_freebsd.cc @@ -13,7 +13,6 @@ // limitations under the License. #include <errno.h> // errno, ENAMETOOLONG -#include <libprocstat.h> #include <limits.h> #include <pwd.h> #include <signal.h> @@ -26,6 +25,7 @@ #include <sys/types.h> #include <sys/un.h> #include <unistd.h> +#include <libprocstat.h> // must be included after <sys/...> headers #include "src/main/cpp/blaze_util.h" #include "src/main/cpp/blaze_util_platform.h" diff --git a/src/main/tools/process-wrapper.c b/src/main/tools/process-wrapper.c index 36fa59e157..07ae840a52 100644 --- a/src/main/tools/process-wrapper.c +++ b/src/main/tools/process-wrapper.c @@ -33,6 +33,7 @@ #include <string.h> #include <sys/types.h> #include <sys/stat.h> +#include <sys/wait.h> #include <unistd.h> #include "process-tools.h" |