--- a/vendor/extras/partition_tools/lpdump.cc
+++ b/vendor/extras/partition_tools/lpdump.cc
@@ -33,6 +33,7 @@
 #include <android-base/parseint.h>
 #include <android-base/properties.h>
 #include <android-base/strings.h>
+#undef __ANDROID__
 #ifdef __ANDROID__
 #include <cutils/android_get_control_file.h>
 #include <fs_mgr.h>
