Fix compilation on NetBSD/x64. - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
diff options
context:
space:
mode:
authorMike Pall <mike>2013年07月17日 11:04:15 +0200
committerMike Pall <mike>2013年07月17日 11:04:15 +0200
commit9aa5d04137f9ba2f279eb0aebb0a4ba98e6ea2b3 (patch)
tree6fb3fd2daf1a2107aa35b7698549eff0c7d973f1
parent519ef0cba7ebceb99e727da9655692d137854188 (diff)
downloadgsl-shell-9aa5d04137f9ba2f279eb0aebb0a4ba98e6ea2b3.tar.gz
Fix compilation on NetBSD/x64.
Thanks to Justin Cormack.
Diffstat
-rw-r--r--src/lj_alloc.c 2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_alloc.c b/src/lj_alloc.c
index 8f285d17..42eb2e43 100644
--- a/src/lj_alloc.c
+++ b/src/lj_alloc.c
@@ -188,7 +188,7 @@ static LJ_AINLINE void *CALL_MMAP(size_t size)
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(__NetBSD__) || defined(__OpenBSD__) || defined(__sun__)
/* 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,
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月26日 14:12:49 +0000

AltStyle によって変換されたページ (->オリジナル) /