From 22dfa63283276d5dc13205680bda961ec671aef6 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Fri, 7 Apr 2017 12:05:18 +0200 Subject: [PATCH] Allow building on Haiku OS. Note: this is not an officially supported target. Thanks to kallisti5. --- src/lj_arch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lj_arch.h b/src/lj_arch.h index fe55815736..c8d7138e0e 100644 --- a/src/lj_arch.h +++ b/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