diff --git a/src/include/n-unix.h b/src/include/n-unix.h index ac4919a25..5a0f1e167 100644 --- a/src/include/n-unix.h +++ b/src/include/n-unix.h @@ -18,12 +18,13 @@ #define _GNU_SOURCE #endif -#if defined(__arm__) || defined(__aarch64__) +#if defined(__arm__) || defined(__aarch64__) || defined(__FreeBSD__) #include #endif #include #include +#include #include #include diff --git a/src/js.c b/src/js.c index 7e798f153..d2ea095dc 100644 --- a/src/js.c +++ b/src/js.c @@ -11,6 +11,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "natsp.h" #include #include diff --git a/src/kv.c b/src/kv.c index 27146d704..05078f0a7 100644 --- a/src/kv.c +++ b/src/kv.c @@ -11,9 +11,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "natsp.h" #include -#include "natsp.h" #include "kv.h" #include "mem.h" #include "util.h"