aboutsummaryrefslogtreecommitdiffstats
path: root/main/squashfs-tools/squashfs-tools-4.0-uclibc-get_nprocs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/squashfs-tools/squashfs-tools-4.0-uclibc-get_nprocs.patch')
-rw-r--r--main/squashfs-tools/squashfs-tools-4.0-uclibc-get_nprocs.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/main/squashfs-tools/squashfs-tools-4.0-uclibc-get_nprocs.patch b/main/squashfs-tools/squashfs-tools-4.0-uclibc-get_nprocs.patch
new file mode 100644
index 0000000000..9c6312f16b
--- /dev/null
+++ b/main/squashfs-tools/squashfs-tools-4.0-uclibc-get_nprocs.patch
@@ -0,0 +1,22 @@
+--- a/squashfs-tools/mksquashfs.c Wed Dec 2 10:30:31 2009
++++ b/squashfs-tools/mksquashfs.c Wed Dec 2 10:31:34 2009
+@@ -3705,7 +3705,7 @@
+ processors = 1;
+ }
+ #else
+- processors = get_nprocs();
++ processors = sysconf(_SC_NPROCESSORS_ONLN);
+ #endif
+ }
+
+--- a/squashfs-tools/unsquashfs.c Wed Dec 2 10:30:31 2009
++++ b/squashfs-tools/unsquashfs.c Wed Dec 2 10:31:34 2009
+@@ -1811,7 +1811,7 @@
+ processors = 1;
+ }
+ #else
+- processors = get_nprocs();
++ processors = sysconf(_SC_NPROCESSORS_ONLN);
+ #endif
+ }
+