diff options
-rw-r--r-- | frontends/ast/ast.cc | 5 | ||||
-rw-r--r-- | kernel/yosys.cc | 3 |
2 files changed, 8 insertions, 0 deletions
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 <sstream> #include <stdarg.h> + +#if defined(__APPLE__) +#include <cmath> +#else #include <math.h> +#endif YOSYS_NAMESPACE_BEGIN diff --git a/kernel/yosys.cc b/kernel/yosys.cc index f314f546a..e9b113dd2 100644 --- a/kernel/yosys.cc +++ b/kernel/yosys.cc @@ -33,6 +33,9 @@ # include <io.h> #elif defined(__APPLE__) # include <mach-o/dyld.h> +# include <unistd.h> +# include <dirent.h> +# include <sys/stat.h> #else # include <unistd.h> # include <dirent.h> |