wayne: Don't rely on transitively included headers

One must explicitly include what it need.
time.h for struct tm.
sys/time.h for gettimeofday, etc.

Bug: 37629934
Test: build

Merged-In: Iacd5317d958f61df062fca40fbf2e8992c7fbb44
Change-Id: I19e1043f23dbe85836b73714a4f1440159ebe419
This commit is contained in:
Jiyong Park 2017-09-06 12:10:07 +09:00 committed by Isaac Chen
parent 465ccf7608
commit 5a86a2763f
3 changed files with 3 additions and 0 deletions

View file

@ -32,6 +32,7 @@
#include <sys/un.h> #include <sys/un.h>
#include <errno.h> #include <errno.h>
#include <ctype.h> #include <ctype.h>
#include <unistd.h>
#include <cutils/properties.h> #include <cutils/properties.h>
#include <math.h> #include <math.h>
#include <arpa/inet.h> #include <arpa/inet.h>

View file

@ -32,6 +32,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/time.h> #include <sys/time.h>
#include <time.h>
#include "loc_log.h" #include "loc_log.h"
#include "msg_q.h" #include "msg_q.h"
#include <platform_lib_includes.h> #include <platform_lib_includes.h>

View file

@ -26,6 +26,7 @@
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <cstdio> #include <cstdio>
#include <sys/time.h>
#include "platform_lib_log_util.h" #include "platform_lib_log_util.h"
#include "platform_lib_macros.h" #include "platform_lib_macros.h"