summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2017-10-25 14:57:18 +0300
committerValentin Bartenev <vbart@nginx.com>2017-10-25 14:57:18 +0300
commit5ed4d7b9dcd11bf2f37130812dbc34d951a73484 (patch)
treeb2ec15da27999ae59d0f568a6b971b08f76602e9
parent03e18cf42f35777b68bb00c862eaed9bc0191e19 (diff)
downloadunit-5ed4d7b9dcd11bf2f37130812dbc34d951a73484.tar.gz
unit-5ed4d7b9dcd11bf2f37130812dbc34d951a73484.tar.bz2
Avoiding compilation on systems with no working shared memory.
-rw-r--r--src/nxt_port_memory.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nxt_port_memory.c b/src/nxt_port_memory.c
index fa2ce449..71ab1d60 100644
--- a/src/nxt_port_memory.c
+++ b/src/nxt_port_memory.c
@@ -314,6 +314,10 @@ nxt_port_new_port_mmap(nxt_task_t *task, nxt_process_t *process,
nxt_errno);
}
+#else
+
+#error No working shared memory implementation.
+
#endif
if (nxt_slow_path(ftruncate(fd, PORT_MMAP_SIZE) == -1)) {