From 4f712e3fd0c2c8f1e91b11dce5596b995ef69985 Mon Sep 17 00:00:00 2001 From: Sergey Kandaurov Date: Tue, 6 Mar 2018 13:55:51 +0000 Subject: Added support for shm_open(SHM_ANON) extension. --- auto/shmem | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'auto') 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 + #include + #include + + 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()" -- cgit