uClibc-compat.patch 810 B

123456789101112131415161718192021222324
  1. diff -Nur squashfs4.0.orig/squashfs-tools/mksquashfs.c squashfs4.0/squashfs-tools/mksquashfs.c
  2. --- squashfs4.0.orig/squashfs-tools/mksquashfs.c 2009-04-05 23:22:48.000000000 +0200
  3. +++ squashfs4.0/squashfs-tools/mksquashfs.c 2011-03-18 22:04:00.000000000 +0100
  4. @@ -3705,7 +3705,7 @@
  5. processors = 1;
  6. }
  7. #else
  8. - processors = get_nprocs();
  9. + processors = sysconf(_SC_NPROCESSORS_CONF);
  10. #endif
  11. }
  12. diff -Nur squashfs4.0.orig/squashfs-tools/unsquashfs.c squashfs4.0/squashfs-tools/unsquashfs.c
  13. --- squashfs4.0.orig/squashfs-tools/unsquashfs.c 2009-04-05 23:23:06.000000000 +0200
  14. +++ squashfs4.0/squashfs-tools/unsquashfs.c 2011-03-18 22:03:31.000000000 +0100
  15. @@ -1811,7 +1811,7 @@
  16. processors = 1;
  17. }
  18. #else
  19. - processors = get_nprocs();
  20. + processors = sysconf(_SC_NPROCESSORS_CONF);
  21. #endif
  22. }