drivers/cc3000: Rename timeval to cc3000_timeval, to avoid clash.
The timeval struct can be defined by system C headers.
This commit is contained in:
parent
79a38a7a43
commit
ce2d34d74f
|
@ -169,9 +169,9 @@ typedef INT32 time_t;
|
|||
typedef UINT32 clock_t;
|
||||
typedef INT32 suseconds_t;
|
||||
|
||||
typedef struct timeval timeval;
|
||||
typedef struct cc3000_timeval cc3000_timeval;
|
||||
|
||||
struct timeval
|
||||
struct cc3000_timeval
|
||||
{
|
||||
time_t tv_sec; /* seconds */
|
||||
suseconds_t tv_usec; /* microseconds */
|
||||
|
|
|
@ -416,7 +416,7 @@ extern INT32 CC3000_EXPORT(connect)(INT32 sd, const sockaddr *addr, INT32 addrle
|
|||
//
|
||||
//*****************************************************************************
|
||||
extern INT16 CC3000_EXPORT(select)(INT32 nfds, fd_set *readsds, fd_set *writesds,
|
||||
fd_set *exceptsds, struct timeval *timeout);
|
||||
fd_set *exceptsds, struct cc3000_timeval *timeout);
|
||||
|
||||
//*****************************************************************************
|
||||
//
|
||||
|
|
|
@ -587,7 +587,7 @@ INT32 CC3000_EXPORT(connect)(INT32 sd, const sockaddr *addr, INT32 addrlen)
|
|||
//*****************************************************************************
|
||||
|
||||
INT16 CC3000_EXPORT(select)(INT32 nfds, fd_set *readsds, fd_set *writesds, fd_set *exceptsds,
|
||||
struct timeval *timeout)
|
||||
struct cc3000_timeval *timeout)
|
||||
{
|
||||
UINT8 *ptr, *args;
|
||||
tBsdSelectRecvParams tParams;
|
||||
|
|
Loading…
Reference in New Issue