]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Disable _FORTIFY_SOURCE during snprintf test.
authorDarren Tucker <dtucker@dtucker.net>
Wed, 4 Jun 2025 08:33:52 +0000 (18:33 +1000)
committerDarren Tucker <dtucker@dtucker.net>
Wed, 4 Jun 2025 08:33:52 +0000 (18:33 +1000)
Prevents mistakenly detecting snprintf as broken on FreeBSD 15 with
_FORTIFY_SOURCE enabled.  bz#3809, patch from jlduran at gmail.com

configure.ac

index 94e782e1563bcc72e1fe6beab43b47f62278d737..9bc664172b0d8d70c09a4a9c3a2a5765fd894195 100644 (file)
@@ -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 <stdio.h>
 int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
                ]], [[