aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
Diffstat (limited to 'executor')
-rw-r--r--executor/common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/executor/common.h b/executor/common.h
index 79dc5940b..49a2cbd67 100644
--- a/executor/common.h
+++ b/executor/common.h
@@ -15,7 +15,11 @@
#define _GNU_SOURCE
#endif
+#if GOOS_freebsd
+#include <sys/endian.h> // for htobe*.
+#else
#include <endian.h> // for htobe*.
+#endif
#include <stdint.h>
#include <stdio.h> // for fmt arguments
#include <stdlib.h>