From de36b6193158b6c94e864b663d9bc9227f13560d Mon Sep 17 00:00:00 2001 From: lhmwzy Date: Fri, 11 Oct 2019 01:05:22 +0800 Subject: [PATCH] compiler: fix symbol error in DragonFlyBSD --- compiler/cheaders.v | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compiler/cheaders.v b/compiler/cheaders.v index b8c8747052..197a9a92c3 100644 --- a/compiler/cheaders.v +++ b/compiler/cheaders.v @@ -43,6 +43,11 @@ CommonCHeaders = ' #include // os__wait uses wait on nix #endif +#ifdef __DragonFly__ +#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...