Skip to contentSkip to conversation

f2fs-tools: fix compile errors on AOSP

PATCH In review Junling Zheng 2 participants 2 messages Jun 20, 2018 – Jun 21, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 f2fs-tools: fix compile errors on AOSP

Include needed header files directly to fix compile errors on AOSP.

---
 include/f2fs_fs.h | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)
include/f2fs_fs.h +2 -8
index 49ecee9..0a1ed84 100644
@@ -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