f2fs-tools: fix compile errors on AOSP
PATCH 1/1 f2fs-tools: fix compile errors on AOSP
Include needed header files directly to fix compile errors on AOSP.
Signed-off-by Junling Zheng <[email protected]>
--- include/f2fs_fs.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
include/f2fs_fs.h +2 -8
@@ -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>
Signature · 6 lines
2.17.0 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Quoted 3 lines · Junling Zheng
Include needed header files directly to fix compile errors on AOSP.
Signed-off-by Junling Zheng <[email protected]>
Reviewed-by Chao Yu <[email protected]>
Thanks,
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot