[PATCH 1/4] Remove HAVE_MMAP and BROKEN_MMAP
openssh at ml.breakpoint.cc
openssh at ml.breakpoint.cc
Wed Mar 25 10:03:40 AEDT 2020
From: Sebastian Andrzej Siewior <sebastian at breakpoint.cc>
BROKEN_MMAP has been removed in commit 1cfd5c06efb12 ("Remove
portability support for mmap")
HAVE_MMAP has been removed in commit 1cfd5c06efb12 ("Remove portability
support for mmap")
Remove remaining BROKEN_MMAP and BROKEN_MMAP bits.
Signed-off-by: Sebastian Andrzej Siewior <sebastian at breakpoint.cc>
---
defines.h | 4 ----
servconf.c | 9 ---------
2 files changed, 13 deletions(-)
diff --git a/defines.h b/defines.h
index a347a44ff0df1..d72bc7836657d 100644
--- a/defines.h
+++ b/defines.h
@@ -822,10 +822,6 @@ struct winsize {
# define getgroups(a,b) ((a)==0 && (b)==NULL ? NGROUPS_MAX : getgroups((a),(b)))
#endif
-#if defined(HAVE_MMAP) && defined(BROKEN_MMAP)
-# undef HAVE_MMAP
-#endif
-
#ifndef IOV_MAX
# if defined(_XOPEN_IOV_MAX)
# define IOV_MAX _XOPEN_IOV_MAX
diff --git a/servconf.c b/servconf.c
index 70f5f73f05192..31699254e6c41 100644
--- a/servconf.c
+++ b/servconf.c
@@ -494,15 +494,6 @@ fill_default_server_options(ServerOptions *options)
options->auth_methods[0] = NULL;
options->num_auth_methods = 0;
}
-
-#ifndef HAVE_MMAP
- if (use_privsep && options->compression == 1) {
- error("This platform does not support both privilege "
- "separation and compression");
- error("Compression disabled");
- options->compression = 0;
- }
-#endif
}
/* Keyword tokens. */
--
2.26.0.rc2
More information about the openssh-unix-dev
mailing list