/network/dsniff/patches/31_sysconf_clocks.patch

https://gitlab.com/abchk1234/slackbuilds · Patch · 31 lines · 26 code · 5 blank · 0 comment · 0 complexity · 666b3639ea7e497c5a1c5678467dd267 MD5 · raw file

  1. Description: Adds a clock fix. It was improved by Robert Scheck <robert@fedoraproject.org>
  2. to work with older Linux kernel versions, too.
  3. Author: <kees@ubuntu.com>
  4. Origin: http://pkgs.fedoraproject.org/cgit/rpms/dsniff.git/tree/dsniff-2.4-sysconf_clocks.patch
  5. ---
  6. This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
  7. --- a/sshow.c
  8. +++ b/sshow.c
  9. @@ -217,7 +217,9 @@
  10. {
  11. clock_t delay;
  12. int payload;
  13. - long CLK_TCK= sysconf(_SC_CLK_TCK);
  14. +#if defined(_SC_CLK_TCK)
  15. + long CLK_TCK = sysconf(_SC_CLK_TCK);
  16. +#endif
  17. delay = add_history(session, 0, cipher_size, plain_range);
  18. @@ -266,7 +268,9 @@
  19. clock_t delay;
  20. int skip;
  21. range string_range;
  22. - long CLK_TCK= sysconf(_SC_CLK_TCK);
  23. +#if defined(_SC_CLK_TCK)
  24. + long CLK_TCK = sysconf(_SC_CLK_TCK);
  25. +#endif
  26. delay = add_history(session, 1, cipher_size, plain_range);