[tlbuild] Patch for building of LuaJIT-2.0.2 on NetBSD/amd64

Marc Baudoin babafou at babafou.eu.org
Sun Feb 23 12:05:36 CET 2014


Hi,

The attached patch is needed in order to compile LuaJIT-2.0.2 on
NetBSD/amd64.  It does not impact other platforms than NetBSD.
Can it be added to LuaJIT-2.0.2 patches?
-------------- next part --------------
diff -ur -x lbitlib.c LuaJIT-2.0.2.orig/src/lj_alloc.c LuaJIT-2.0.2/src/lj_alloc.c
--- LuaJIT-2.0.2.orig/src/lj_alloc.c	2014-02-06 12:03:15.000000000 +0100
+++ LuaJIT-2.0.2/src/lj_alloc.c	2014-02-22 18:39:04.000000000 +0100
@@ -188,7 +188,7 @@
   return ptr;
 }
 
-#elif LJ_TARGET_OSX || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__) || defined(__sun__)
+#elif LJ_TARGET_OSX || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__) || defined(__sun__) || defined(__NetBSD__)
 
 /* OSX and FreeBSD mmap() use a naive first-fit linear search.
 ** That's perfect for us. Except that -pagezero_size must be set for OSX,


More information about the tlbuild mailing list