Revert "Cleanup transitive includes in the legacy inlines."

This reverts commit 43df953502c9615781e73ac3cc0db2a711a86998.

Reason for revert: Breaks most AOSP builds.
https://android-build.googleplex.com/builds/branch-dashboard/aosp-master?build_id=4399910

Change-Id: I53459f97b7dffb1f7f602db03893564dd3cfe6bf
diff --git a/libc/include/android/legacy_signal_inlines.h b/libc/include/android/legacy_signal_inlines.h
index 44c2f4f..4d474b0 100644
--- a/libc/include/android/legacy_signal_inlines.h
+++ b/libc/include/android/legacy_signal_inlines.h
@@ -29,16 +29,16 @@
 #ifndef _ANDROID_LEGACY_SIGNAL_INLINES_H_
 #define _ANDROID_LEGACY_SIGNAL_INLINES_H_
 
-#include <sys/cdefs.h>
-
-#if __ANDROID_API__ < __ANDROID_API_L__
-
 #include <errno.h>
 #include <signal.h>
 #include <string.h>
+#include <sys/cdefs.h>
+
 
 __BEGIN_DECLS
 
+#if __ANDROID_API__ < __ANDROID_API_L__
+
 sighandler_t bsd_signal(int __signal, sighandler_t __handler) __REMOVED_IN(21);
 
 /* These weren't introduced until L. */
@@ -117,8 +117,8 @@
   return bsd_signal(s, f);
 }
 
-__END_DECLS
-
 #endif /* __ANDROID_API__ < __ANDROID_API_L__ */
 
+__END_DECLS
+
 #endif /* _ANDROID_LEGACY_SIGNAL_INLINES_H_ */