aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2022-04-22 14:01:31 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2022-04-26 16:05:36 -0700
commit4d9c009c343ce1247d9df583b22110f348201b3d (patch)
tree156f5f83975d306078a2a2bc625e22a9a696ac2e
parent0b9b89fda2e9fbaf17a11fa15332e7ae95cf5261 (diff)
downloadf2fs-tools-4d9c009c343ce1247d9df583b22110f348201b3d.tar.gz
f2fs-tools: use android config only if there's no config.h
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r--include/f2fs_fs.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/f2fs_fs.h b/include/f2fs_fs.h
index d637427..ad2798c 100644
--- a/include/f2fs_fs.h
+++ b/include/f2fs_fs.h
@@ -26,13 +26,14 @@
#include <stddef.h>
#include <string.h>
#include <time.h>
+
#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
-
+#else
#ifdef __ANDROID__
#define WITH_ANDROID
#endif
+#endif /* HAVE_CONFIG_H */
#ifdef WITH_ANDROID
#include <android_config.h>