diff --git a/frontends/ast/ast.cc b/frontends/ast/ast.cc index 87b073ff3..e41416efc 100644 --- a/frontends/ast/ast.cc +++ b/frontends/ast/ast.cc @@ -32,7 +32,12 @@ #include #include + +#if defined(__APPLE__) +#include +#else #include +#endif YOSYS_NAMESPACE_BEGIN diff --git a/kernel/yosys.cc b/kernel/yosys.cc index 42cfcb5bb..ad0aa5a6d 100644 --- a/kernel/yosys.cc +++ b/kernel/yosys.cc @@ -33,6 +33,9 @@ # include #elif defined(__APPLE__) # include +# include +# include +# include #else # include # include