From 5ed4d7b9dcd11bf2f37130812dbc34d951a73484 Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Wed, 25 Oct 2017 14:57:18 +0300 Subject: [PATCH] Avoiding compilation on systems with no working shared memory. --- src/nxt_port_memory.c | 4 ++++ 1 file changed, 4 insertions(+) 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)) {