mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 06:21:56 -09:00
squashfs3: fix build with uClibc
The squashfs3 package uses the old get_nprocs() GNU extension which does not
exist in uClibc. This has already been fixed in newer squashfs releases
(>=4.0). The patch is similar to the one committed in
dfa2a513e1
[Peter: add patch header]
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
committed by
Peter Korsgaard
parent
06211219a0
commit
b23df14888
33
package/squashfs3/squashfs3-3.4-get_nprocs.patch
Normal file
33
package/squashfs3/squashfs3-3.4-get_nprocs.patch
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
squashfs3: fix build with uClibc
|
||||||
|
|
||||||
|
The squashfs3 package uses the old get_nprocs() GNU extension which does not
|
||||||
|
exist in uClibc. This has already been fixed in newer squashfs releases
|
||||||
|
(>=4.0).
|
||||||
|
|
||||||
|
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
|
||||||
|
Index: squashfs3-3.4/squashfs-tools/mksquashfs.c
|
||||||
|
===================================================================
|
||||||
|
--- squashfs3-3.4.orig/squashfs-tools/mksquashfs.c
|
||||||
|
+++ squashfs3-3.4/squashfs-tools/mksquashfs.c
|
||||||
|
@@ -3178,7 +3178,7 @@ void initialise_threads()
|
||||||
|
processors = 1;
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
- processors = get_nprocs();
|
||||||
|
+ processors = sysconf(_SC_NPROCESSORS_CONF);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
Index: squashfs3-3.4/squashfs-tools/unsquashfs.c
|
||||||
|
===================================================================
|
||||||
|
--- squashfs3-3.4.orig/squashfs-tools/unsquashfs.c
|
||||||
|
+++ squashfs3-3.4/squashfs-tools/unsquashfs.c
|
||||||
|
@@ -2428,7 +2428,7 @@ void initialise_threads(int fragment_buf
|
||||||
|
processors = 1;
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
- processors = get_nprocs();
|
||||||
|
+ processors = sysconf(_SC_NPROCESSORS_CONF);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user