aboutsummaryrefslogtreecommitdiffstats
path: root/main/squashfs-tools/squashfs-tools-4.0-uclibc-get_nprocs.patch
blob: 9c6312f16bbbc49495162f878bf25cded3cee890 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
 	}