Skip to content
Snippets Groups Projects
Commit ce2d34d7 authored by Damien George's avatar Damien George
Browse files

drivers/cc3000: Rename timeval to cc3000_timeval, to avoid clash.

The timeval struct can be defined by system C headers.
parent 79a38a7a
No related branches found
No related tags found
No related merge requests found
...@@ -169,9 +169,9 @@ typedef INT32 time_t; ...@@ -169,9 +169,9 @@ typedef INT32 time_t;
typedef UINT32 clock_t; typedef UINT32 clock_t;
typedef INT32 suseconds_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 */ time_t tv_sec; /* seconds */
suseconds_t tv_usec; /* microseconds */ suseconds_t tv_usec; /* microseconds */
......
...@@ -416,7 +416,7 @@ extern INT32 CC3000_EXPORT(connect)(INT32 sd, const sockaddr *addr, INT32 addrle ...@@ -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, 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) ...@@ -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, 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; UINT8 *ptr, *args;
tBsdSelectRecvParams tParams; tBsdSelectRecvParams tParams;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment