Skip to content
Browse files

Add missing headers for compilation on x86 targets

Change-Id: I5f4dc797b353a0f01fa00d38375ec303bf863254
  • Loading branch information...
1 parent 609d882 commit b93e5812faffd3b6c5fb349072413aace31918d8 Olivier Bailly committed Nov 17, 2010
View
1 init/devices.c
@@ -15,6 +15,7 @@
*/
#include <errno.h>
+#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
View
2 init/keychords.c
@@ -17,9 +17,11 @@
#include <errno.h>
#include <fcntl.h>
#include <stdlib.h>
+#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <linux/keychord.h>
+#include <unistd.h>
#include "init.h"
#include "log.h"
View
2 init/list.h
@@ -17,6 +17,8 @@
#ifndef _INIT_LIST_H_
#define _INIT_LIST_H_
+#include <stddef.h>
+
struct listnode
{
struct listnode *next;
View
1 libnetutils/dhcp_utils.c
@@ -18,6 +18,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <netinet/in.h>
View
1 libsysutils/src/FrameworkListener.cpp
@@ -15,6 +15,7 @@
*/
#include <errno.h>
#include <string.h>
+#include <stdlib.h>
#define LOG_TAG "FrameworkListener"
View
1 libsysutils/src/ServiceManager.cpp
@@ -1,4 +1,5 @@
#include <errno.h>
+#include <string.h>
#include <sysutils/ServiceManager.h>
View
1 toolbox/cmp.c
@@ -2,6 +2,7 @@
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
+#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <errno.h>
View
2 toolbox/date.c
@@ -1,10 +1,12 @@
#include <stdio.h>
#include <stdlib.h>
+#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>
#include <time.h>
#include <linux/android_alarm.h>
+#include <sys/ioctl.h>
static void settime(char *s) {
struct tm tm;
View
2 toolbox/dd.h
@@ -35,6 +35,8 @@
* @(#)dd.h 8.3 (Berkeley) 4/2/94
*/
+#include <stdint.h>
+
/* Input/output stream state. */
typedef struct {
u_char *db; /* buffer address */
View
1 toolbox/hd.c
@@ -2,6 +2,7 @@
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
+#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <errno.h>
View
3 toolbox/ioctl.c
@@ -1,11 +1,14 @@
#include <stdio.h>
#include <stdlib.h>
+#include <stdint.h>
#include <fcntl.h>
+#include <getopt.h>
#include <string.h>
#include <linux/kd.h>
#include <linux/vt.h>
#include <errno.h>
#include <pthread.h>
+#include <sys/ioctl.h>
int ioctl_main(int argc, char *argv[])
{
View
2 toolbox/nandread.c
@@ -4,6 +4,7 @@
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
+#include <unistd.h>
#include <mtd/mtd-user.h>
#include <sys/ioctl.h>
@@ -283,4 +284,3 @@ int nandread_main(int argc, char **argv)
return 0;
}
-
View
1 toolbox/notify.c
@@ -3,6 +3,7 @@
#include <string.h>
#include <stdint.h>
#include <fcntl.h>
+#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/inotify.h>
#include <errno.h>
View
3 toolbox/schedtop.c
@@ -2,7 +2,9 @@
#include <stdlib.h>
#include <ctype.h>
#include <fcntl.h>
+#include <unistd.h>
+#include <stdint.h>
#include <string.h>
#include <sys/stat.h>
@@ -332,4 +334,3 @@ int schedtop_main(int argc, char **argv)
closedir(d);
return 0;
}
-
View
2 toolbox/setconsole.c
@@ -6,6 +6,8 @@
#include <linux/vt.h>
#include <errno.h>
#include <pthread.h>
+#include <unistd.h>
+#include <sys/ioctl.h>
static int activate_thread_switch_vc;
static void *activate_thread(void *arg)

0 comments on commit b93e581

Please sign in to comment.
Something went wrong with that request. Please try again.