make_ext4fs: fix build on musl systems Include sys/sysmacros.h on all systems, except MACOS. The previous change only included the header on glibc systems: 3af931b0b6545757aaeadb13f9bb9da0296fc172 Signed-off-by: Johannes Kimmel <freifunk@mail.bareminimum.eu>
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>
Only include sys/sysmacros.h on glibc, it is not portable Signed-off-by: Felix Fietkau <nbd@nbd.name>
Include sys/sysmacros.h explicitely. Recent glibc versions do not expose major() and minor() without an explicit include of sysmacros.h anymore, therefor add it. Also remove duplicate types.h include while we're at it. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Remove unused mountpoint support Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Fix fs configuration support Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Remove selinux support code Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Import make_ext4fs sources Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>