Fix missing #includes in system/core.

Change-Id: I4736e8c4f7bb8bb03640d26d58243efaa67dc75c
This commit is contained in:
Elliott Hughes 2014-12-29 12:24:25 -08:00
parent 2978ad4c6d
commit 0badbd6565
15 changed files with 19 additions and 8 deletions

View File

@ -31,6 +31,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/stat.h>

View File

@ -29,6 +29,7 @@
* SUCH DAMAGE.
*/
#include <errno.h>
#include <fcntl.h>
#include <string.h>
#include <unistd.h>

View File

@ -14,6 +14,7 @@
* limitations under the License.
*/
#include <errno.h>
#include <pthread.h>
#include <stddef.h>
#include <stdio.h>

View File

@ -15,6 +15,7 @@
*/
#include <endian.h>
#include <errno.h>
#include <fcntl.h>
#include <pthread.h>
#include <stdio.h>

View File

@ -28,6 +28,7 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>

View File

@ -20,6 +20,7 @@
#include <log/log.h>
#include <errno.h>
#include <hardware/memtrack.h>
#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))

View File

@ -19,6 +19,7 @@
#include <assert.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
#include <stdbool.h>

View File

@ -10,6 +10,7 @@
#include <sys/poll.h>
#include <linux/input.h>
#include <errno.h>
#include <unistd.h>
#include "getevent.h"

View File

@ -9,6 +9,7 @@
#include <errno.h>
#include <pthread.h>
#include <sys/ioctl.h>
#include <unistd.h>
int ioctl_main(int argc, char *argv[])
{

View File

@ -1,15 +1,13 @@
#include <ctype.h>
#include <dirent.h>
#include <fcntl.h>
#include <pwd.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <fcntl.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>
#include <pwd.h>
#include <unistd.h>
#include <cutils/sched_policy.h>

View File

@ -5,6 +5,7 @@
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <unistd.h>
#if __LP64__
#define strtoptr strtoull

View File

@ -6,6 +6,7 @@
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <unistd.h>
int sendevent_main(int argc, char *argv[])
{

View File

@ -3,6 +3,7 @@
#include <string.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
int smd_main(int argc, char **argv)
{

View File

@ -6,6 +6,7 @@
#include <stdlib.h>
#include <fcntl.h>
#include <time.h>
#include <unistd.h>
static void usage(void)
{

View File

@ -36,7 +36,7 @@
#include <fcntl.h>
#include <stdio.h>
#include <time.h>
#include <unistd.h>
static void format_time(int time, char* buffer) {
int seconds, minutes, hours, days;