diff --git a/vlib/compiler/cheaders.v b/vlib/compiler/cheaders.v index 2246bbf86a..6d93c8b784 100644 --- a/vlib/compiler/cheaders.v +++ b/vlib/compiler/cheaders.v @@ -106,6 +106,11 @@ extern char **environ; #include // os__wait uses wait on nix #endif +#ifdef __sun +#include +#include // os__wait uses wait on nix +#endif + $c_common_macros #ifdef _WIN32 diff --git a/vlib/v/gen/cheaders.v b/vlib/v/gen/cheaders.v index 9d2a820bea..1d9f4e81c4 100644 --- a/vlib/v/gen/cheaders.v +++ b/vlib/v/gen/cheaders.v @@ -107,6 +107,11 @@ extern char **environ; #include // os__wait uses wait on nix #endif +#ifdef __sun +#include +#include // os__wait uses wait on nix +#endif + $c_common_macros #ifdef _WIN32