Mercurial > hg > aboriginal
view sources/patches/squashfs-tools-4.0-uclibc-get_nprocs.patch @ 1228:8a88cae14011
Remove RW_SYSTEM_IMAGE option. The gentoo-stage1 build shows how to setup a writeable chroot, and the FAQ says how to build a writeable system image. I'm not shipping two different system iamges, then I'd have to explain it and it's not worth the confusion.
author | Rob Landley <rob@landley.net> |
---|---|
date | Tue, 24 Aug 2010 02:53:11 -0500 |
parents | 4e798d7aa5f9 |
children |
line wrap: on
line source
uclibc does not have get_nprocs() so build of squashfs host tool fails --- 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 }