diff options
| author | Elliott Hughes <enh@google.com> | 2015-01-29 03:23:35 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-01-29 03:23:35 +0000 |
| commit | 7f17aea2fc21aaf657824a023a4b7582fb74a2d9 (patch) | |
| tree | 6ca1abad535824e4c45866315896e264d9c57b52 | |
| parent | 017da8bc58ba07be92dd371020e9dc3fe26f481b (diff) | |
| parent | 05fc1d7050d5451aea08dc5f504d2670287b2d43 (diff) | |
| download | bionic-7f17aea2fc21aaf657824a023a4b7582fb74a2d9.zip bionic-7f17aea2fc21aaf657824a023a4b7582fb74a2d9.tar.gz bionic-7f17aea2fc21aaf657824a023a4b7582fb74a2d9.tar.bz2 | |
Merge "Add missing includes."
| -rw-r--r-- | libc/bionic/bionic_systrace.cpp | 1 | ||||
| -rw-r--r-- | libc/bionic/debug_stacktrace.cpp | 1 | ||||
| -rw-r--r-- | libc/bionic/dirent.cpp | 2 | ||||
| -rw-r--r-- | libc/bionic/getcwd.cpp | 4 | ||||
| -rw-r--r-- | libc/bionic/malloc_debug_common.cpp | 1 | ||||
| -rw-r--r-- | libc/bionic/malloc_debug_qemu.cpp | 1 | ||||
| -rw-r--r-- | libc/bionic/posix_timers.cpp | 1 | ||||
| -rw-r--r-- | libc/bionic/pthread_create.cpp | 1 | ||||
| -rw-r--r-- | libc/bionic/pthread_setname_np.cpp | 1 | ||||
| -rw-r--r-- | libc/bionic/vdso.cpp | 1 | ||||
| -rw-r--r-- | libc/dns/net/getservent.c | 1 | ||||
| -rw-r--r-- | linker/dlfcn.cpp | 1 | ||||
| -rw-r--r-- | linker/linker_allocator.cpp | 2 | ||||
| -rw-r--r-- | linker/linker_environ.cpp | 1 | ||||
| -rw-r--r-- | linker/linker_phdr.cpp | 1 |
15 files changed, 19 insertions, 1 deletions
diff --git a/libc/bionic/bionic_systrace.cpp b/libc/bionic/bionic_systrace.cpp index c74a52c..10521cf 100644 --- a/libc/bionic/bionic_systrace.cpp +++ b/libc/bionic/bionic_systrace.cpp @@ -19,6 +19,7 @@ #include <fcntl.h> #include <stdio.h> #include <stdlib.h> +#include <string.h> #include "private/bionic_systrace.h" #include "private/libc_logging.h" diff --git a/libc/bionic/debug_stacktrace.cpp b/libc/bionic/debug_stacktrace.cpp index 7d3c76e..c6ce714 100644 --- a/libc/bionic/debug_stacktrace.cpp +++ b/libc/bionic/debug_stacktrace.cpp @@ -30,6 +30,7 @@ #include <dlfcn.h> #include <inttypes.h> +#include <malloc.h> #include <unistd.h> #include <unwind.h> #include <sys/types.h> diff --git a/libc/bionic/dirent.cpp b/libc/bionic/dirent.cpp index 6d87097..fb45398 100644 --- a/libc/bionic/dirent.cpp +++ b/libc/bionic/dirent.cpp @@ -30,6 +30,8 @@ #include <errno.h> #include <fcntl.h> +#include <malloc.h> +#include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> diff --git a/libc/bionic/getcwd.cpp b/libc/bionic/getcwd.cpp index 47c807f..a8bbcf3 100644 --- a/libc/bionic/getcwd.cpp +++ b/libc/bionic/getcwd.cpp @@ -26,8 +26,10 @@ * SUCH DAMAGE. */ -#include <unistd.h> #include <errno.h> +#include <malloc.h> +#include <string.h> +#include <unistd.h> extern "C" int __getcwd(char* buf, size_t size); diff --git a/libc/bionic/malloc_debug_common.cpp b/libc/bionic/malloc_debug_common.cpp index 38c6583..1a2765a 100644 --- a/libc/bionic/malloc_debug_common.cpp +++ b/libc/bionic/malloc_debug_common.cpp @@ -41,6 +41,7 @@ #include <pthread.h> #include <stdlib.h> +#include <string.h> #include <unistd.h> #include "private/ScopedPthreadMutexLocker.h" diff --git a/libc/bionic/malloc_debug_qemu.cpp b/libc/bionic/malloc_debug_qemu.cpp index 2f4949b..fa40b35 100644 --- a/libc/bionic/malloc_debug_qemu.cpp +++ b/libc/bionic/malloc_debug_qemu.cpp @@ -45,6 +45,7 @@ #include <stdlib.h> #include <stddef.h> #include <stdio.h> +#include <string.h> #include <fcntl.h> #include <sys/mman.h> #include <sys/param.h> diff --git a/libc/bionic/posix_timers.cpp b/libc/bionic/posix_timers.cpp index 3c664d9..9991573 100644 --- a/libc/bionic/posix_timers.cpp +++ b/libc/bionic/posix_timers.cpp @@ -31,6 +31,7 @@ #include "private/kernel_sigset_t.h" #include <errno.h> +#include <malloc.h> #include <stdio.h> #include <string.h> diff --git a/libc/bionic/pthread_create.cpp b/libc/bionic/pthread_create.cpp index 7406b35..c6d8494 100644 --- a/libc/bionic/pthread_create.cpp +++ b/libc/bionic/pthread_create.cpp @@ -29,6 +29,7 @@ #include <pthread.h> #include <errno.h> +#include <string.h> #include <sys/mman.h> #include <unistd.h> diff --git a/libc/bionic/pthread_setname_np.cpp b/libc/bionic/pthread_setname_np.cpp index 93d4b2f..c4e9fb8 100644 --- a/libc/bionic/pthread_setname_np.cpp +++ b/libc/bionic/pthread_setname_np.cpp @@ -30,6 +30,7 @@ #include <fcntl.h> #include <stdio.h> // For snprintf. +#include <string.h> #include <sys/prctl.h> #include <sys/stat.h> #include <sys/types.h> diff --git a/libc/bionic/vdso.cpp b/libc/bionic/vdso.cpp index 645f072..a240663 100644 --- a/libc/bionic/vdso.cpp +++ b/libc/bionic/vdso.cpp @@ -15,6 +15,7 @@ */ #include <link.h> +#include <string.h> #include <sys/auxv.h> #include <unistd.h> diff --git a/libc/dns/net/getservent.c b/libc/dns/net/getservent.c index 9f6ec32..0a727c7 100644 --- a/libc/dns/net/getservent.c +++ b/libc/dns/net/getservent.c @@ -28,6 +28,7 @@ #include <sys/cdefs.h> #include <sys/types.h> #include <endian.h> +#include <malloc.h> #include <netdb.h> #include "servent.h" #include "services.h" diff --git a/linker/dlfcn.cpp b/linker/dlfcn.cpp index 7ef94c0..9a8dbc9 100644 --- a/linker/dlfcn.cpp +++ b/linker/dlfcn.cpp @@ -20,6 +20,7 @@ #include <pthread.h> #include <stdio.h> #include <stdlib.h> +#include <string.h> #include <android/dlext.h> #include <bionic/pthread_internal.h> diff --git a/linker/linker_allocator.cpp b/linker/linker_allocator.cpp index 92220e8..ac11b97 100644 --- a/linker/linker_allocator.cpp +++ b/linker/linker_allocator.cpp @@ -13,8 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + #include "linker_allocator.h" #include <inttypes.h> +#include <string.h> #include <sys/mman.h> #include <unistd.h> diff --git a/linker/linker_environ.cpp b/linker/linker_environ.cpp index daee56f..7272f4e 100644 --- a/linker/linker_environ.cpp +++ b/linker/linker_environ.cpp @@ -31,6 +31,7 @@ #include <linux/auxvec.h> #include <stddef.h> #include <stdlib.h> +#include <string.h> #include <unistd.h> #include "private/KernelArgumentBlock.h" diff --git a/linker/linker_phdr.cpp b/linker/linker_phdr.cpp index af4dc25..91a2fb8 100644 --- a/linker/linker_phdr.cpp +++ b/linker/linker_phdr.cpp @@ -29,6 +29,7 @@ #include "linker_phdr.h" #include <errno.h> +#include <string.h> #include <sys/mman.h> #include <sys/types.h> #include <sys/stat.h> |
