From 4b69c3cbaccd51b7ea719e7bd756d680e825988d Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 7 Mar 2019 20:36:03 +0100 Subject: pkg/runtest: make tests pass on freebsd The problem is stupid: should be included as on freebsd. Pass actual host OS to executor build as HOSTGOOS and use it to figure out how we should include this header. --- executor/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'executor/common.h') diff --git a/executor/common.h b/executor/common.h index 1f8e4b441..1d4d1883c 100644 --- a/executor/common.h +++ b/executor/common.h @@ -15,7 +15,7 @@ #define _GNU_SOURCE #endif -#if GOOS_freebsd +#if GOOS_freebsd || GOOS_test && HOSTGOOS_freebsd #include // for htobe*. #else #include // for htobe*. -- cgit mrf-deployment