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:
Jouni Malinen 2011-09-12 22:15:13 +03:00
parent 3d9e2e6615
commit 531e420dd7
4 changed files with 4 additions and 2 deletions

View file

@ -13,6 +13,7 @@
*/
#include "utils/includes.h"
#include <time.h>
#include "utils/common.h"
#include "radius/radius_client.h"

View file

@ -34,7 +34,6 @@
#include <errno.h>
#endif /* _WIN32_WCE */
#include <ctype.h>
#include <time.h>
#ifndef CONFIG_TI_COMPILER
#ifndef _MSC_VER

View file

@ -14,6 +14,8 @@
#include "includes.h"
#include <time.h>
#ifdef ANDROID
#include <linux/capability.h>
#include <linux/prctl.h>

View file

@ -172,7 +172,7 @@
#include "includes.h"
#include <assert.h>
#include <time.h>
#include <net/if.h>
#include <netdb.h>
#include <sys/ioctl.h>