Revert "Revert "Revert "Cleanup transitive includes in the legacy inlines."""
This reverts commit f945fb6b8a09d08be89b1b771b20d7291baab659.
Reason for revert: haven't fixed all the builds yet
Change-Id: I55aff5d0290c27691427d91a8e46ae01c87da6b2
diff --git a/libc/include/android/legacy_errno_inlines.h b/libc/include/android/legacy_errno_inlines.h
index 9f116fa..8f08074 100644
--- a/libc/include/android/legacy_errno_inlines.h
+++ b/libc/include/android/legacy_errno_inlines.h
@@ -29,12 +29,11 @@
#ifndef _ANDROID_LEGACY_ERRNO_INLINES_H
#define _ANDROID_LEGACY_ERRNO_INLINES_H
+#include <errno.h>
#include <sys/cdefs.h>
#if __ANDROID_API__ < __ANDROID_API_L__
-#include <errno.h>
-
__BEGIN_DECLS
static __inline int __attribute__((deprecated)) __set_errno(int n) {