summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2015-04-01 07:36:23 -0700
committerMark Salyzyn <salyzyn@google.com>2015-04-01 16:02:32 +0000
commitfc737fb76cc889d0c19bd8bf74d2b5f1fc4fbe6e (patch)
treeda0b535aa2f0a15b68a6272fc3bcfb626715fa00 /cmds
parent562c6a71f98e921fe8def18991b2a26f153c683d (diff)
downloadframeworks_base-fc737fb76cc889d0c19bd8bf74d2b5f1fc4fbe6e.zip
frameworks_base-fc737fb76cc889d0c19bd8bf74d2b5f1fc4fbe6e.tar.gz
frameworks_base-fc737fb76cc889d0c19bd8bf74d2b5f1fc4fbe6e.tar.bz2
app_main missing include for sys/stat.h
app_main.c gets sys/stat.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 sys/stat.h in this include file. Bug: 19908228 Change-Id: I477b825e582742113f849aaa1df50c41e496b6f6
Diffstat (limited to 'cmds')
-rw-r--r--cmds/app_process/app_main.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/cmds/app_process/app_main.cpp b/cmds/app_process/app_main.cpp
index c86fd53..c5af992 100644
--- a/cmds/app_process/app_main.cpp
+++ b/cmds/app_process/app_main.cpp
@@ -7,6 +7,12 @@
#define LOG_TAG "appproc"
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/prctl.h>
+#include <sys/stat.h>
+#include <unistd.h>
+
#include <binder/IPCThreadState.h>
#include <binder/ProcessState.h>
#include <utils/Log.h>
@@ -17,11 +23,6 @@
#include <android_runtime/AndroidRuntime.h>
#include <private/android_filesystem_config.h> // for AID_SYSTEM
-#include <stdlib.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <sys/prctl.h>
-
namespace android {
static void app_usage()