Skip to content

Commit 4625404

Browse files
igormunkinkyukhin
authored andcommitted
FreeBSD/x64: Avoid changing resource limits, if not needed.
Part-of tarantool gh-4271 Part-of tarantool gh-4537 Signed-off-by: Igor Munkin <[email protected]>
1 parent 98b1cfc commit 4625404

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lj_alloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ static void *CALL_MMAP(size_t size)
343343
}
344344
#endif
345345

346-
#if (defined(__FreeBSD__) || defined(__FreeBSD_kernel__)) && !LJ_TARGET_PS4
346+
#if LJ_64 && !LJ_GC64 && ((defined(__FreeBSD__) && __FreeBSD__ < 10) || defined(__FreeBSD_kernel__)) && !LJ_TARGET_PS4
347347

348348
#include <sys/resource.h>
349349

0 commit comments

Comments
 (0)