]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/platform.hpp
Put brackets around ipv6 addresses in `inet6 present`
[factor.git] / vm / platform.hpp
index 50005ad6b3b432dbc0780ed33dccf35ff7befbb9..c3ae476345844b8eb6320e7f2b144114e67e979e 100644 (file)
       #include "os-macosx-x86.32.hpp"
     #elif defined(FACTOR_AMD64)
       #include "os-macosx-x86.64.hpp"
+    #elif defined(FACTOR_ARM64)
+      #include "os-macosx-arm64.hpp"
     #else
       #error "Unsupported Mac OS X flavor"
     #endif
   #else
     #include "os-genunix.hpp"
-    #if defined(__linux__)
+    #if defined(__FreeBSD__)
+       #define FACTOR_OS_STRING "freebsd"
+       #include "os-freebsd.hpp"
+        #if defined(FACTOR_X86)
+           #include "os-freebsd-x86.32.hpp"
+        #elif defined(FACTOR_AMD64)
+           #include "os-freebsd-x86.64.hpp"
+        #else
+            #error "Unsupported FreeBSD flavor"
+        #endif
+    #elif defined(__linux__)
       #define FACTOR_OS_STRING "linux"
       #include "os-linux.hpp"
-
       #if defined(FACTOR_X86)
         #include "os-linux-x86.32.hpp"
       #elif defined(FACTOR_PPC64)
         #include "os-linux-ppc.32.hpp"
       #elif defined(FACTOR_ARM)
         #include "os-linux-arm.hpp"
+      #elif defined(FACTOR_ARM64)
+        #include "os-linux-arm.64.hpp"
       #elif defined(FACTOR_AMD64)
         #include "os-linux-x86.64.hpp"
       #else
         #error "Unsupported Linux flavor"
       #endif
-    #else
-      #error "Unsupported OS"
     #endif
   #endif
 #endif
@@ -60,6 +71,9 @@
   #include "cpu-ppc.hpp"
 #elif defined(FACTOR_ARM)
   #include "cpu-arm.hpp"
+#elif defined(FACTOR_ARM64)
+  #include "cpu-arm.64.hpp"
+  #include "cpu-arm.hpp"
 #else
   #error "Unsupported CPU"
 #endif