aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
Diffstat (limited to 'executor')
-rw-r--r--executor/common.h2
1 files changed, 1 insertions, 1 deletions
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 <sys/endian.h> // for htobe*.
#else
#include <endian.h> // for htobe*.