diff options
author | Elliott Hughes <enh@google.com> | 2012-09-11 18:52:40 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2012-09-12 10:10:20 -0700 |
commit | b77d3d724945f38b39f3116e3aead4edcbd08a36 (patch) | |
tree | b884863d9e8dbad4f61acdf851ea04f2dabfc97f /charger/charger.c | |
parent | 922b460cc790722ffc303b200f02958e4066a2de (diff) | |
download | system_core-b77d3d724945f38b39f3116e3aead4edcbd08a36.zip system_core-b77d3d724945f38b39f3116e3aead4edcbd08a36.tar.gz system_core-b77d3d724945f38b39f3116e3aead4edcbd08a36.tar.bz2 |
Always include <sys/socket.h> before <linux/netlink.h>.
Newer kernel headers files aren't stand alone. (This has long been true of
glibc's copy, but we only recently updated external/kernel-headers.)
Change-Id: Iebcb40902b2f29fe509e207e2f3a9d02a7e40602
Diffstat (limited to 'charger/charger.c')
-rw-r--r-- | charger/charger.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/charger/charger.c b/charger/charger.c index abf5517..76be076 100644 --- a/charger/charger.c +++ b/charger/charger.c @@ -21,19 +21,20 @@ #include <errno.h> #include <fcntl.h> #include <linux/input.h> -#include <linux/netlink.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/poll.h> -#include <sys/socket.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/un.h> #include <time.h> #include <unistd.h> +#include <sys/socket.h> +#include <linux/netlink.h> + #include <cutils/android_reboot.h> #include <cutils/klog.h> #include <cutils/list.h> |