Avoiding compilation on systems with no working shared memory.

This commit is contained in:
Valentin Bartenev
2017-10-25 14:57:18 +03:00
parent 03e18cf42f
commit 5ed4d7b9dc

View File

@@ -314,6 +314,10 @@ nxt_port_new_port_mmap(nxt_task_t *task, nxt_process_t *process,
nxt_errno); nxt_errno);
} }
#else
#error No working shared memory implementation.
#endif #endif
if (nxt_slow_path(ftruncate(fd, PORT_MMAP_SIZE) == -1)) { if (nxt_slow_path(ftruncate(fd, PORT_MMAP_SIZE) == -1)) {