summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2015-04-01 07:42:46 -0700
committerMark Salyzyn <salyzyn@google.com>2015-04-01 11:15:37 -0700
commit68ffc74e32dba4799ac3249c6835ca1ef2fe5f04 (patch)
tree88b29e7ddb93fb74b30f5ff9f5d27a3fa8e7da24
parent27cda9a535c80470e913156e412cbf7e60c3217c (diff)
downloadsystem_core-68ffc74e32dba4799ac3249c6835ca1ef2fe5f04.zip
system_core-68ffc74e32dba4799ac3249c6835ca1ef2fe5f04.tar.gz
system_core-68ffc74e32dba4799ac3249c6835ca1ef2fe5f04.tar.bz2
package missing include for string.h
package.c gets string.h inherited from private/android_filesystem_config.h it should not rely on this in the future. The intent is to move fs_config function into libcutils and thus deprecate any need for string.h in this include file. Bug: 19908228 Change-Id: I5db6d0a88c5b1eb9f582284e9bdd220c096ea69a
-rw-r--r--run-as/package.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/run-as/package.c b/run-as/package.c
index 4f8f3a7..9e1f5bb 100644
--- a/run-as/package.c
+++ b/run-as/package.c
@@ -16,9 +16,11 @@
*/
#include <errno.h>
#include <fcntl.h>
-#include <unistd.h>
-#include <sys/stat.h>
+#include <string.h>
#include <sys/mman.h>
+#include <sys/stat.h>
+#include <unistd.h>
+
#include <private/android_filesystem_config.h>
#include "package.h"