Browse Source

Allow building on Haiku OS.

Note: this is not an officially supported target.
Thanks to kallisti5.
Mike Pall 8 năm trước cách đây
mục cha
commit
22dfa63283
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/lj_arch.h

+ 1 - 1
src/lj_arch.h

@@ -74,7 +74,7 @@
        defined(__NetBSD__) || defined(__OpenBSD__) || \
        defined(__DragonFly__)) && !defined(__ORBIS__)
 #define LUAJIT_OS	LUAJIT_OS_BSD
-#elif (defined(__sun__) && defined(__svr4__))
+#elif (defined(__sun__) && defined(__svr4__)) || defined(__HAIKU__)
 #define LUAJIT_OS	LUAJIT_OS_POSIX
 #elif defined(__CYGWIN__)
 #define LJ_TARGET_CYGWIN	1