summaryrefslogtreecommitdiff
path: root/servconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'servconf.c')
-rw-r--r--servconf.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/servconf.c b/servconf.c
index b7f941ab5..fb6332c31 100644
--- a/servconf.c
+++ b/servconf.c
@@ -256,6 +256,16 @@ fill_default_server_options(ServerOptions *options)
256 /* Turn privilege separation on by default */ 256 /* Turn privilege separation on by default */
257 if (use_privsep == -1) 257 if (use_privsep == -1)
258 use_privsep = 1; 258 use_privsep = 1;
259
260#if !defined(HAVE_MMAP) || !defined(MAP_ANON)
261 if (use_privsep && options->compression == 1) {
262 error("This platform does not support both privilege "
263 "separation and compression");
264 error("Compression disabled");
265 options->compression = 0;
266 }
267#endif
268
259} 269}
260 270
261/* Keyword tokens. */ 271/* Keyword tokens. */