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

34 lines
871 B
Diff

--- a/configure.ac
+++ b/configure.ac
@@ -198,6 +198,7 @@ if test "$GCC" = "yes" || test "$GCC" =
OSSH_CHECK_CFLAG_COMPILE([-Wextra])
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])
@@ -1973,8 +1974,6 @@ AC_CHECK_FUNCS([ \
strcasestr \
strdup \
strerror \
- strlcat \
- strlcpy \
strmode \
strndup \
strnlen \
@@ -2001,6 +2000,13 @@ AC_CHECK_FUNCS([ \
waitpid \
warn \
])
+AC_CHECK_DECLS([ \
+ explicit_bzero, \
+ strlcat, \
+ strlcpy,
+ timingsafe_bcmp \
+], [], [], [[#include <string.h>]])
+AC_CHECK_DECLS([reallocarray], [], [], [[#include <stdlib.h>]])
AC_CHECK_DECLS([bzero, memmem])