summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--adf/libadfhwc/adfhwc.cpp1
-rw-r--r--fastbootd/commands/boot.c1
-rw-r--r--fastbootd/commands/partitions.c1
-rw-r--r--fastbootd/commands/virtual_partitions.c1
-rw-r--r--fastbootd/config.c1
-rw-r--r--fastbootd/other/gptedit.c1
-rw-r--r--fastbootd/transport.c1
-rw-r--r--fastbootd/utils.c1
-rw-r--r--libion/ion.c1
-rw-r--r--libmemtrack/memtrack.c3
-rw-r--r--libnetutils/packet.c1
-rw-r--r--libsync/sync.c1
-rw-r--r--libsysutils/src/SocketClient.cpp1
-rw-r--r--logd/LogStatistics.cpp1
-rw-r--r--logd/LogWhiteBlackList.cpp1
-rw-r--r--toolbox/ionice.c1
-rw-r--r--toolbox/lsof.c1
-rw-r--r--toolbox/renice.c1
-rw-r--r--toolbox/restorecon.c1
19 files changed, 21 insertions, 0 deletions
diff --git a/adf/libadfhwc/adfhwc.cpp b/adf/libadfhwc/adfhwc.cpp
index 57e09eb..21f245e 100644
--- a/adf/libadfhwc/adfhwc.cpp
+++ b/adf/libadfhwc/adfhwc.cpp
@@ -15,6 +15,7 @@
*/
#include <fcntl.h>
+#include <malloc.h>
#include <poll.h>
#include <pthread.h>
#include <sys/resource.h>
diff --git a/fastbootd/commands/boot.c b/fastbootd/commands/boot.c
index 922914b..bb93917 100644
--- a/fastbootd/commands/boot.c
+++ b/fastbootd/commands/boot.c
@@ -33,6 +33,7 @@
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
+#include <malloc.h>
#include <unistd.h>
#include "boot.h"
diff --git a/fastbootd/commands/partitions.c b/fastbootd/commands/partitions.c
index 3b27959..953c56a 100644
--- a/fastbootd/commands/partitions.c
+++ b/fastbootd/commands/partitions.c
@@ -42,6 +42,7 @@
#include <linux/hdreg.h>
#include <sys/ioctl.h>
#include <stdlib.h>
+#include <string.h>
#include <cutils/config_utils.h>
#include <inttypes.h>
diff --git a/fastbootd/commands/virtual_partitions.c b/fastbootd/commands/virtual_partitions.c
index 9da4020..b72d5b6 100644
--- a/fastbootd/commands/virtual_partitions.c
+++ b/fastbootd/commands/virtual_partitions.c
@@ -31,6 +31,7 @@
#include "commands/virtual_partitions.h"
+#include <malloc.h>
#include <string.h>
#include "debug.h"
diff --git a/fastbootd/config.c b/fastbootd/config.c
index 012a197..daac3fd 100644
--- a/fastbootd/config.c
+++ b/fastbootd/config.c
@@ -31,6 +31,7 @@
#include <errno.h>
#include <fcntl.h>
+#include <malloc.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
diff --git a/fastbootd/other/gptedit.c b/fastbootd/other/gptedit.c
index d423529..2b65a01 100644
--- a/fastbootd/other/gptedit.c
+++ b/fastbootd/other/gptedit.c
@@ -33,6 +33,7 @@
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
#include <cutils/klog.h>
diff --git a/fastbootd/transport.c b/fastbootd/transport.c
index 232c999..3ba0e9a 100644
--- a/fastbootd/transport.c
+++ b/fastbootd/transport.c
@@ -19,6 +19,7 @@
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
#include <sys/mman.h>
diff --git a/fastbootd/utils.c b/fastbootd/utils.c
index a9ab47e..4c3a2e8 100644
--- a/fastbootd/utils.c
+++ b/fastbootd/utils.c
@@ -36,6 +36,7 @@
#include <sys/ioctl.h>
#include <linux/fs.h>
#include <stdlib.h>
+#include <string.h>
#include <cutils/properties.h>
#include "utils.h"
diff --git a/libion/ion.c b/libion/ion.c
index a79525d..4908932 100644
--- a/libion/ion.c
+++ b/libion/ion.c
@@ -23,6 +23,7 @@
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
+#include <string.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/types.h>
diff --git a/libmemtrack/memtrack.c b/libmemtrack/memtrack.c
index 5d68083..21d9ebd 100644
--- a/libmemtrack/memtrack.c
+++ b/libmemtrack/memtrack.c
@@ -21,6 +21,9 @@
#include <log/log.h>
#include <errno.h>
+#include <malloc.h>
+#include <string.h>
+
#include <hardware/memtrack.h>
#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
diff --git a/libnetutils/packet.c b/libnetutils/packet.c
index a878dd3..cd26d05 100644
--- a/libnetutils/packet.c
+++ b/libnetutils/packet.c
@@ -15,6 +15,7 @@
*/
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
#include <sys/uio.h>
#include <sys/socket.h>
diff --git a/libsync/sync.c b/libsync/sync.c
index 4892866..d73bb11 100644
--- a/libsync/sync.c
+++ b/libsync/sync.c
@@ -17,6 +17,7 @@
*/
#include <fcntl.h>
+#include <malloc.h>
#include <stdint.h>
#include <string.h>
diff --git a/libsysutils/src/SocketClient.cpp b/libsysutils/src/SocketClient.cpp
index 8358823..bb9b6a1 100644
--- a/libsysutils/src/SocketClient.cpp
+++ b/libsysutils/src/SocketClient.cpp
@@ -1,5 +1,6 @@
#include <alloca.h>
#include <errno.h>
+#include <malloc.h>
#include <pthread.h>
#include <signal.h>
#include <string.h>
diff --git a/logd/LogStatistics.cpp b/logd/LogStatistics.cpp
index 6f3a088..53036e6 100644
--- a/logd/LogStatistics.cpp
+++ b/logd/LogStatistics.cpp
@@ -15,6 +15,7 @@
*/
#include <fcntl.h>
+#include <malloc.h>
#include <stdarg.h>
#include <time.h>
diff --git a/logd/LogWhiteBlackList.cpp b/logd/LogWhiteBlackList.cpp
index 9728db1..6910854 100644
--- a/logd/LogWhiteBlackList.cpp
+++ b/logd/LogWhiteBlackList.cpp
@@ -15,6 +15,7 @@
*/
#include <ctype.h>
+#include <malloc.h>
#include <utils/String8.h>
diff --git a/toolbox/ionice.c b/toolbox/ionice.c
index 4a182f2..7abc261 100644
--- a/toolbox/ionice.c
+++ b/toolbox/ionice.c
@@ -1,5 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
#include <errno.h>
diff --git a/toolbox/lsof.c b/toolbox/lsof.c
index bee981d..982f5aa 100644
--- a/toolbox/lsof.c
+++ b/toolbox/lsof.c
@@ -35,6 +35,7 @@
#include <libgen.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
#include <pwd.h>
diff --git a/toolbox/renice.c b/toolbox/renice.c
index 9dfeb51..99a06f4 100644
--- a/toolbox/renice.c
+++ b/toolbox/renice.c
@@ -32,6 +32,7 @@
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
+#include <string.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sched.h>
diff --git a/toolbox/restorecon.c b/toolbox/restorecon.c
index 3568625..cb5799e 100644
--- a/toolbox/restorecon.c
+++ b/toolbox/restorecon.c
@@ -1,6 +1,7 @@
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <errno.h>
#include <selinux/selinux.h>
#include <selinux/android.h>