logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>

tac-uint64.patch (780B)


  1. SPDX-FileCopyrightText: 2022 Andrius Štikonas <andrius@stikonas.eu>
  2. SPDX-License-Identifier: GPL-2.0-or-later
  3. uint64_t is not supported in tcc 0.9.27
  4. --- coreutils-5.0/lib/tempname.c 2002-12-01 10:40:32.000000000 +0000
  5. +++ coreutils-5.0/lib/tempname.c 2022-06-22 20:57:37.449423973 +0100
  6. @@ -231,8 +231,8 @@
  7. {
  8. int len;
  9. char *XXXXXX;
  10. - static uint64_t value;
  11. - uint64_t random_time_bits;
  12. + static unsigned long long value;
  13. + unsigned long long random_time_bits;
  14. unsigned int count;
  15. int fd = -1;
  16. int save_errno = errno;
  17. @@ -278,7 +278,7 @@
  18. for (count = 0; count < attempts; value += 7777, ++count)
  19. {
  20. - uint64_t v = value;
  21. + unsigned long long v = value;
  22. /* Fill in the random bits. */
  23. XXXXXX[0] = letters[v % 62];