summaryrefslogtreecommitdiffhomepage
path: root/auto
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2018-03-06 13:55:51 +0000
committerSergey Kandaurov <pluknet@nginx.com>2018-03-06 13:55:51 +0000
commit4f712e3fd0c2c8f1e91b11dce5596b995ef69985 (patch)
treed0e8f69d492c842fa027c7aa57a30f10c4623039 /auto
parent30a32c2f09d954ee85be86e202828eab851311d6 (diff)
downloadunit-4f712e3fd0c2c8f1e91b11dce5596b995ef69985.tar.gz
unit-4f712e3fd0c2c8f1e91b11dce5596b995ef69985.tar.bz2
Added support for shm_open(SHM_ANON) extension.
Diffstat (limited to 'auto')
-rw-r--r--auto/shmem23
1 files changed, 23 insertions, 0 deletions
diff --git a/auto/shmem b/auto/shmem
index 1f0d2907..bfe0ee4a 100644
--- a/auto/shmem
+++ b/auto/shmem
@@ -85,6 +85,29 @@ fi
nxt_shm_open_found=$nxt_found
+# FreeBSD 8.0
+
+nxt_feature="shm_open(SHM_ANON)"
+nxt_feature_name=NXT_HAVE_SHM_OPEN_ANON
+nxt_feature_libs=
+nxt_feature_test="#include <sys/mman.h>
+ #include <fcntl.h>
+ #include <sys/stat.h>
+
+ int main() {
+ int fd = shm_open(SHM_ANON, O_RDWR, S_IRUSR | S_IWUSR);
+ if (fd == -1)
+ return 1;
+
+ return 0;
+ }"
+. auto/feature
+
+if [ "$nxt_shm_open_found" = no ]; then
+ nxt_shm_open_found=$nxt_found
+fi
+
+
# Linux
nxt_feature="memfd_create()"