From: Darren Tucker Date: Wed, 4 Jun 2025 08:33:52 +0000 (+1000) Subject: Disable _FORTIFY_SOURCE during snprintf test. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a22ff3c6f11edd00c19981f9cb85d3b25d305a56;p=thirdparty%2Fopenssh-portable.git Disable _FORTIFY_SOURCE during snprintf test. Prevents mistakenly detecting snprintf as broken on FreeBSD 15 with _FORTIFY_SOURCE enabled. bz#3809, patch from jlduran at gmail.com --- diff --git a/configure.ac b/configure.ac index 94e782e15..9bc664172 100644 --- a/configure.ac +++ b/configure.ac @@ -2503,6 +2503,9 @@ fi # This is only useful for when BROKEN_SNPRINTF AC_MSG_CHECKING([whether snprintf can declare const char *fmt]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ +#ifdef _FORTIFY_SOURCE +#undef _FORTIFY_SOURCE +#endif #include int snprintf(char *a, size_t b, const char *c, ...) { return 0; } ]], [[