summaryrefslogtreecommitdiffstats
path: root/libcutils
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-03-19 14:06:50 -0700
committerJeff Brown <jeffbrown@google.com>2012-03-19 14:06:50 -0700
commit14d0c6c7c0e9abd39e4b4d0a384d12de5ecbdbfc (patch)
treecefb3a66d1349372d970fb9ed4238825778820eb /libcutils
parentc4edb9ec907d97175626419ff98302fd5123b943 (diff)
downloadsystem_core-14d0c6c7c0e9abd39e4b4d0a384d12de5ecbdbfc.zip
system_core-14d0c6c7c0e9abd39e4b4d0a384d12de5ecbdbfc.tar.gz
system_core-14d0c6c7c0e9abd39e4b4d0a384d12de5ecbdbfc.tar.bz2
Add missing includes.
Caused warnings about implicitly defined malloc() and sprintf(). Change-Id: Ia56309adc11caf5801ffd88e374c512b785cfd93
Diffstat (limited to 'libcutils')
-rw-r--r--libcutils/process_name.c1
-rw-r--r--libcutils/tzstrftime.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/libcutils/process_name.c b/libcutils/process_name.c
index b235429..bda9d08 100644
--- a/libcutils/process_name.c
+++ b/libcutils/process_name.c
@@ -14,6 +14,7 @@
* limitations under the License.
*/
+#include <stdlib.h>
#include <string.h>
#include <cutils/process_name.h>
#include <cutils/properties.h>
diff --git a/libcutils/tzstrftime.c b/libcutils/tzstrftime.c
index e37d79a..e4f54df 100644
--- a/libcutils/tzstrftime.c
+++ b/libcutils/tzstrftime.c
@@ -8,6 +8,7 @@ static char elsieid[] = "@(#)strftime.c 8.1";
#endif /* !defined NOID */
#endif /* !defined lint */
+#include <stdio.h>
#include <time.h>
#include <tzfile.h>
#include <limits.h>