mirror of
https://github.com/void-linux/void-packages.git
synced 2025-09-29 23:25:11 +02:00
Previous build of OpenSSH 7.5p1 broke due to undefined prototypes for functions provided by LibreSSL, which then were called according to the wrong calling convention. We had this situation before in https://github.com/OpenSMTPD/OpenSMTPD/issues/691 Build with -Werror now to detect new issues arising in the future. Remove one obsolete constant value to make this pass. Check OpenBSD libc functions (partially provided by glibc and musl) using AC_CHECK_DECLS instead to verify they have a prototype. Explicitly define prototypes for arc4random* when LibreSSL is detected (from https://bugzilla.mindrot.org/show_bug.cgi?id=2465)
26 lines
593 B
Diff
26 lines
593 B
Diff
--- servconf.c.orig
|
|
+++ servconf.c
|
|
@@ -935,13 +935,6 @@
|
|
{ "no", 0 },
|
|
{ NULL, -1 }
|
|
};
|
|
-static const struct multistate multistate_privsep[] = {
|
|
- { "yes", PRIVSEP_NOSANDBOX },
|
|
- { "sandbox", PRIVSEP_ON },
|
|
- { "nosandbox", PRIVSEP_NOSANDBOX },
|
|
- { "no", PRIVSEP_OFF },
|
|
- { NULL, -1 }
|
|
-};
|
|
static const struct multistate multistate_tcpfwd[] = {
|
|
{ "yes", FORWARD_ALLOW },
|
|
{ "all", FORWARD_ALLOW },
|
|
--- configure.ac.orig
|
|
+++ configure.ac
|
|
@@ -399,7 +399,6 @@
|
|
sys/bitypes.h \
|
|
sys/bsdtty.h \
|
|
sys/capability.h \
|
|
- sys/cdefs.h \
|
|
sys/dir.h \
|
|
sys/mman.h \
|
|
sys/ndir.h \
|