]> git.ipfire.org Git - thirdparty/util-linux.git/commit
switch_root: improve statfs->f_type portability
authorKarel Zak <kzak@redhat.com>
Thu, 6 Nov 2014 11:50:27 +0000 (12:50 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 6 Nov 2014 11:50:27 +0000 (12:50 +0100)
commit8f806bb1ea30f15db7ca36d1cfa79349f8115302
tree7128f0c36bc2d04ca4513f11fe3daf631845762a
parent9cf4f909110d9d230486ee335918615bab6065da
switch_root: improve statfs->f_type portability

__SWORD_TYPE is not available everywhere, for example it's not defined
by musl libc. It also seems that __SWORD_TYPE is not used for f_type
on some architectures (s390x).

Reported-by: Natanael Copa <ncopa@alpinelinux.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
include/statfs_magic.h
sys-utils/switch_root.c