void-packages/srcpkgs/openssh/patches/config.patch

34 lines
837 B
Diff

--- a/configure.ac
+++ b/configure.ac
@@ -184,6 +184,7 @@
OSSH_CHECK_CFLAG_COMPILE([-Wall])
OSSH_CHECK_CFLAG_COMPILE([-Wpointer-arith])
OSSH_CHECK_CFLAG_COMPILE([-Wuninitialized])
+ OSSH_CHECK_CFLAG_COMPILE([-Wimplicit-function-declaration])
OSSH_CHECK_CFLAG_COMPILE([-Wsign-compare])
OSSH_CHECK_CFLAG_COMPILE([-Wformat-security])
OSSH_CHECK_CFLAG_COMPILE([-Wsizeof-pointer-memaccess])
@@ -1761,8 +1760,6 @@
strcasestr \
strdup \
strerror \
- strlcat \
- strlcpy \
strmode \
strnlen \
strnvis \
@@ -1785,6 +1781,13 @@
waitpid \
warn \
])
+AC_CHECK_DECLS([ \
+ explicit_bzero, \
+ strlcat, \
+ strlcpy,
+ timingsafe_bcmp \
+], [], [], [[#include <string.h>]])
+AC_CHECK_DECLS([reallocarray], [], [], [[#include <stdlib.h>]])
dnl Wide character support.
AC_CHECK_FUNCS([mblen mbtowc nl_langinfo wcwidth])