Remove time.h include from utils/includes.h
os_*() wrappers should be used instead of functions from time.h. Removing the header from includes.h enforces this. os_unix.c can include this its uses are valid wrapper calls. wps_upnp.c uses gmtime() for which there is no os_*() wrapper available yet, so allow it to use time.h, too. Similarly, allow dump_state.c to use time.h for ctime().
This commit is contained in:
parent
3d9e2e6615
commit
531e420dd7
4 changed files with 4 additions and 2 deletions
|
@ -13,6 +13,7 @@
|
|||
*/
|
||||
|
||||
#include "utils/includes.h"
|
||||
#include <time.h>
|
||||
|
||||
#include "utils/common.h"
|
||||
#include "radius/radius_client.h"
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
#include <errno.h>
|
||||
#endif /* _WIN32_WCE */
|
||||
#include <ctype.h>
|
||||
#include <time.h>
|
||||
|
||||
#ifndef CONFIG_TI_COMPILER
|
||||
#ifndef _MSC_VER
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
|
||||
#include "includes.h"
|
||||
|
||||
#include <time.h>
|
||||
|
||||
#ifdef ANDROID
|
||||
#include <linux/capability.h>
|
||||
#include <linux/prctl.h>
|
||||
|
|
|
@ -172,7 +172,7 @@
|
|||
|
||||
#include "includes.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <time.h>
|
||||
#include <net/if.h>
|
||||
#include <netdb.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
|
Loading…
Reference in a new issue