Whamcloud - gitweb
AOSP: Fix e2fsdroid build with musl
authorColin Cross <ccross@android.com>
Tue, 17 Aug 2021 00:17:03 +0000 (17:17 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 13 Sep 2022 14:37:11 +0000 (10:37 -0400)
commit1950b65452198630b55703f6f14c0d554a7f05fe
tree449c159709a00ee903bc2100bade8413e52aa7b1
parent9892631d0426ac07aceb1939cf0430481461dd63
AOSP: Fix e2fsdroid build with musl

The e2fsdroid build fails with musl because config.h is not included
before ext2fs.h, which causes HAVE_SYS_TYPES_H not to be defined
resulting in a missing definition for dev_t.

Include config.h at the top of each .c file, and remove extra
config.h include from perms.h.

Bug: 190084016
Test: m USE_HOST_MUSL=true fastboot
Change-Id: I95b3fff3f10ba85c00ec049811dd6b5d412e5dd2
From AOSP commit: 09c63d5edd35e3ca8366be0d92aad922d8895ac1
contrib/android/e2fsdroid.c
contrib/android/perms.c
contrib/android/perms.h
e2fsck/jfs_user.h