Builds on Mac 10.9.2 with LLVM 3.5.
authorParviz Palangpour <parviz@nanowattdesign.com>
Sat, 18 Oct 2014 19:26:49 +0000 (14:26 -0500)
committerParviz Palangpour <parviz@nanowattdesign.com>
Sun, 19 Oct 2014 16:14:43 +0000 (11:14 -0500)
frontends/ast/ast.cc
kernel/yosys.cc

index 87b073ff36606cf29ae40ff871486497a4d903f8..e41416efc54e1144d70eadd828788913bb565bce 100644 (file)
 
 #include <sstream>
 #include <stdarg.h>
+
+#if defined(__APPLE__)
+#include <cmath>
+#else
 #include <math.h>
+#endif
 
 YOSYS_NAMESPACE_BEGIN
 
index f314f546a68277dd98e02d6d26ea46e6e5c19ada..e9b113dd20302a434b9c2779d24ca17e542776f6 100644 (file)
@@ -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>