From 2403abe1eef731572a9f5ec2e8198865824f1cb3 Mon Sep 17 00:00:00 2001 From: sunnylcw <54568172+sunnylcw@users.noreply.github.com> Date: Wed, 9 Oct 2019 19:28:30 +0800 Subject: [PATCH] compiler: Add C headers to avoid undefined symbol error in FreeBSD --- compiler/cheaders.v | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compiler/cheaders.v b/compiler/cheaders.v index 33187c3b04..d4d7b723f4 100644 --- a/compiler/cheaders.v +++ b/compiler/cheaders.v @@ -38,6 +38,11 @@ CommonCHeaders = ' #include // os__wait uses wait on nix #endif +#ifdef __FreeBSD__ +#include +#include // os__wait uses wait on nix +#endif + #define EMPTY_STRUCT_DECLARATION #define EMPTY_STRUCT_INITIALIZATION 0 // Due to a tcc bug, the length of an array needs to be specified, but GCC crashes if it is...