diff options
author | Jonas 'Sortie' Termansen <sortie@maxsi.org> | 2024-11-02 22:05:45 +0100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2024-12-06 10:53:14 +0100 |
commit | f129b6ee1d4361799e65307216e3a4d5544356b7 (patch) | |
tree | 5423164319233b8009328e17346bf2491c8f3585 | |
parent | upstream: Expand $SSH to absolute path if it's not already. (diff) | |
download | openssh-f129b6ee1d4361799e65307216e3a4d5544356b7.tar.xz openssh-f129b6ee1d4361799e65307216e3a4d5544356b7.zip |
Fix configure implicit declaration and format warnings.
-rw-r--r-- | configure.ac | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 6c451f4cb..e5da93365 100644 --- a/configure.ac +++ b/configure.ac @@ -628,6 +628,7 @@ case "$host" in AC_MSG_CHECKING([if compiler allows macro redefinitions]) AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[ +#include <stdlib.h> #define testmacro foo #define testmacro bar]], [[ exit(0); ]])], @@ -4407,7 +4408,11 @@ int main(void) long long num = 0x7fffffffffffffffll; #endif strcpy(expected_out, "9223372036854775807"); +#if (SIZEOF_LONG_INT == 8) + snprintf(buf, mazsize, "%ld", num); +#else snprintf(buf, mazsize, "%lld", num); +#endif if(strcmp(buf, expected_out) != 0) exit(1); exit(0); |