diff options
author | Junling Zheng <zhengjunling@huawei.com> | 2018-06-20 21:06:16 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-08-27 23:49:26 -0700 |
commit | 8af586d3a2cc8a91eb57a07c5c4998d84e3c1f3a (patch) | |
tree | 7d38d8ff1a32c31a71d74c573a18df026fcec4e5 | |
parent | e2819f24bdaa3e2c0f5f6ef348a1425b3c41a531 (diff) | |
download | f2fs-tools-8af586d3a2cc8a91eb57a07c5c4998d84e3c1f3a.tar.gz |
f2fs-tools: fix compile errors on AOSP
Include needed header files directly to fix compile errors on AOSP.
Signed-off-by: Junling Zheng <zhengjunling@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r-- | include/f2fs_fs.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/include/f2fs_fs.h b/include/f2fs_fs.h index e297f3f..36f3c62 100644 --- a/include/f2fs_fs.h +++ b/include/f2fs_fs.h @@ -13,6 +13,8 @@ #define __F2FS_FS_H__ #include <stdio.h> +#include <stdlib.h> +#include <string.h> #ifdef HAVE_CONFIG_H #include <config.h> #endif @@ -40,14 +42,6 @@ #include <linux/blkzoned.h> #endif -#ifdef HAVE_STDLIB_H -#include <stdlib.h> -#endif - -#ifdef HAVE_STRING_H -#include <string.h> -#endif - #ifdef HAVE_LIBSELINUX #include <selinux/selinux.h> #include <selinux/label.h> |