patch-configure_ac 701 B

12345678910111213141516171819202122
  1. --- tmux-3.2a.orig/configure.ac 2021-06-10 10:20:51.000000000 +0200
  2. +++ tmux-3.2a/configure.ac 2022-03-16 12:00:53.916934376 +0100
  3. @@ -150,18 +150,10 @@ AC_REPLACE_FUNCS([ \
  4. strlcpy \
  5. strndup \
  6. strsep \
  7. + strtonum \
  8. ])
  9. AC_FUNC_STRNLEN
  10. -# Check if strtonum works.
  11. -AC_MSG_CHECKING([for working strtonum])
  12. -AC_RUN_IFELSE([AC_LANG_PROGRAM(
  13. - [#include <stdlib.h>],
  14. - [return (strtonum("0", 0, 1, NULL) == 0 ? 0 : 1);]
  15. - )],
  16. - [AC_DEFINE(HAVE_STRTONUM) AC_MSG_RESULT(yes)],
  17. - [AC_LIBOBJ(strtonum) AC_MSG_RESULT(no)]
  18. -)
  19. # Clang sanitizers wrap reallocarray even if it isn't available on the target
  20. # system. When compiled it always returns NULL and crashes the program. To