From 40360b379cee07574493f5a450cf1c6e531bdde0 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 29 Dec 2014 13:29:50 -0800 Subject: [PATCH] Remove bogus transitive includes. shouldn't get you the contents of , and shouldn't get you the contents of . Change-Id: I347499cd8671bfee98e6b8e875a97cab3a3655d3 --- libc/bionic/bionic_systrace.cpp | 1 + libc/bionic/chown.cpp | 1 + libc/bionic/lchown.cpp | 1 + libc/bionic/poll.cpp | 1 + libc/bionic/raise.cpp | 1 + libc/bionic/readlink.cpp | 1 + libc/bionic/sigaddset.cpp | 1 + libc/bionic/sigdelset.cpp | 1 + libc/bionic/sigemptyset.cpp | 1 + libc/bionic/sigfillset.cpp | 1 + libc/bionic/sigismember.cpp | 1 + libc/bionic/termios.cpp | 1 + libc/bionic/utimes.cpp | 1 + libc/include/fcntl.h | 1 - libc/include/signal.h | 1 - libc/upstream-netbsd/android/include/fd_setsize.h | 1 + 16 files changed, 14 insertions(+), 2 deletions(-) diff --git a/libc/bionic/bionic_systrace.cpp b/libc/bionic/bionic_systrace.cpp index f5be41553..c74a52c09 100644 --- a/libc/bionic/bionic_systrace.cpp +++ b/libc/bionic/bionic_systrace.cpp @@ -15,6 +15,7 @@ */ #include +#include #include #include #include diff --git a/libc/bionic/chown.cpp b/libc/bionic/chown.cpp index bc2e6054e..dce167369 100644 --- a/libc/bionic/chown.cpp +++ b/libc/bionic/chown.cpp @@ -29,6 +29,7 @@ #include #include #include +#include int chown(const char* path, uid_t uid, gid_t gid) { return fchownat(AT_FDCWD, path, uid, gid, 0); diff --git a/libc/bionic/lchown.cpp b/libc/bionic/lchown.cpp index 95251db01..24611a5b9 100644 --- a/libc/bionic/lchown.cpp +++ b/libc/bionic/lchown.cpp @@ -29,6 +29,7 @@ #include #include #include +#include int lchown(const char* path, uid_t uid, gid_t gid) { return fchownat(AT_FDCWD, path, uid, gid, AT_SYMLINK_NOFOLLOW); diff --git a/libc/bionic/poll.cpp b/libc/bionic/poll.cpp index ebb318d92..d267229b7 100644 --- a/libc/bionic/poll.cpp +++ b/libc/bionic/poll.cpp @@ -26,6 +26,7 @@ * SUCH DAMAGE. */ +#include #include #include diff --git a/libc/bionic/raise.cpp b/libc/bionic/raise.cpp index 0dd0ad7b8..b134b5af7 100644 --- a/libc/bionic/raise.cpp +++ b/libc/bionic/raise.cpp @@ -26,6 +26,7 @@ * SUCH DAMAGE. */ +#include #include #include diff --git a/libc/bionic/readlink.cpp b/libc/bionic/readlink.cpp index a2c5e91a5..3bb7bc18a 100644 --- a/libc/bionic/readlink.cpp +++ b/libc/bionic/readlink.cpp @@ -29,6 +29,7 @@ #include #include #include +#include ssize_t readlink(const char* path, char* buf, size_t size) { return readlinkat(AT_FDCWD, path, buf, size); diff --git a/libc/bionic/sigaddset.cpp b/libc/bionic/sigaddset.cpp index 33ec6f84b..6ade3b121 100644 --- a/libc/bionic/sigaddset.cpp +++ b/libc/bionic/sigaddset.cpp @@ -26,6 +26,7 @@ * SUCH DAMAGE. */ +#include #include int sigaddset(sigset_t* set, int signum) { diff --git a/libc/bionic/sigdelset.cpp b/libc/bionic/sigdelset.cpp index 9eea2506a..3582f0d48 100644 --- a/libc/bionic/sigdelset.cpp +++ b/libc/bionic/sigdelset.cpp @@ -26,6 +26,7 @@ * SUCH DAMAGE. */ +#include #include int sigdelset(sigset_t* set, int signum) { diff --git a/libc/bionic/sigemptyset.cpp b/libc/bionic/sigemptyset.cpp index 299316903..8d8033f99 100644 --- a/libc/bionic/sigemptyset.cpp +++ b/libc/bionic/sigemptyset.cpp @@ -26,6 +26,7 @@ * SUCH DAMAGE. */ +#include #include int sigemptyset(sigset_t* set) { diff --git a/libc/bionic/sigfillset.cpp b/libc/bionic/sigfillset.cpp index 7b7cbb831..37792e55b 100644 --- a/libc/bionic/sigfillset.cpp +++ b/libc/bionic/sigfillset.cpp @@ -26,6 +26,7 @@ * SUCH DAMAGE. */ +#include #include int sigfillset(sigset_t* set) { diff --git a/libc/bionic/sigismember.cpp b/libc/bionic/sigismember.cpp index 0dc73acee..16acd098c 100644 --- a/libc/bionic/sigismember.cpp +++ b/libc/bionic/sigismember.cpp @@ -26,6 +26,7 @@ * SUCH DAMAGE. */ +#include #include int sigismember(const sigset_t* set, int signum) { diff --git a/libc/bionic/termios.cpp b/libc/bionic/termios.cpp index 082dcdc82..44ae64354 100644 --- a/libc/bionic/termios.cpp +++ b/libc/bionic/termios.cpp @@ -26,6 +26,7 @@ * SUCH DAMAGE. */ +#include #include #include diff --git a/libc/bionic/utimes.cpp b/libc/bionic/utimes.cpp index 65f2d0b76..0b66e6cb5 100644 --- a/libc/bionic/utimes.cpp +++ b/libc/bionic/utimes.cpp @@ -26,6 +26,7 @@ * SUCH DAMAGE. */ +#include #include #include #include diff --git a/libc/include/fcntl.h b/libc/include/fcntl.h index b18ab1216..4c4cfbd73 100644 --- a/libc/include/fcntl.h +++ b/libc/include/fcntl.h @@ -35,7 +35,6 @@ #include #include #include -#include /* this is not required, but makes client code much happier */ __BEGIN_DECLS diff --git a/libc/include/signal.h b/libc/include/signal.h index 9519f6d09..898888809 100644 --- a/libc/include/signal.h +++ b/libc/include/signal.h @@ -30,7 +30,6 @@ #define _SIGNAL_H_ #include -#include #include #include #include diff --git a/libc/upstream-netbsd/android/include/fd_setsize.h b/libc/upstream-netbsd/android/include/fd_setsize.h index e69de29bb..41bfcb71b 100644 --- a/libc/upstream-netbsd/android/include/fd_setsize.h +++ b/libc/upstream-netbsd/android/include/fd_setsize.h @@ -0,0 +1 @@ +#include