make_ext4fs: Remove off64_t in favor of standard off_t This fixes building against cygwin which does not define off64_t. off_t under modern versions of OS X(or macOS) defaults to 64-bit. Furthermore, _FILE_OFFSET_BITS is defined to 64-bit which eliminates the need for using off64_t directly. Also, musl just like OS X defines off_t as 64-bit in all situations. Also removed some code related to this. Signed-off by: Rosen Penev <rosenp@gmail.com>
make_ext4fs: explicitly call setlocale() before creating image The alphasort(3) function, which is used as comparison function for scandir(3) is locale dependent (at least in glibc, in which it defers to strcoll(3)). This patch explicitly calls setlocale(3), setting the locale to "C". Currently, there are no other calls to setlocale(), so this does not change the behaviour. However, we'd like to be sure that in the future no-one will break that. Signed-off-by: Wojtek Porczyk <woju@invisiblethingslab.com>
Remove unused files Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>