Suffer the consequences of moving struct timeval to its correct location
This commit is contained in:
parent
c2234e058f
commit
d6704a1cd7
@ -50,6 +50,7 @@
|
|||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#include <iphlpapi.h>
|
#include <iphlpapi.h>
|
||||||
|
|
||||||
|
#include <sys/time.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
@ -48,6 +48,7 @@
|
|||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
#include <sys/time.h>
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
@ -387,6 +387,8 @@ long cc3000_connect_impl(long sd, FAR const struct sockaddr *addr, socklen_t add
|
|||||||
*
|
*
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
|
struct timeval;
|
||||||
|
|
||||||
int cc3000_select_impl(long nfds, TICC3000fd_set *readfds, TICC3000fd_set *writefds,TICC3000fd_set *exceptfds,
|
int cc3000_select_impl(long nfds, TICC3000fd_set *readfds, TICC3000fd_set *writefds,TICC3000fd_set *exceptfds,
|
||||||
struct timeval *timeout);
|
struct timeval *timeout);
|
||||||
|
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/select.h>
|
#include <sys/select.h>
|
||||||
|
#include <sys/time.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -39,11 +39,13 @@
|
|||||||
* Included Files
|
* Included Files
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
|
#include <sys/time.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include <nuttx/wireless/cc3000/hci.h>
|
#include <nuttx/wireless/cc3000/hci.h>
|
||||||
#include "cc3000_socket.h"
|
#include "cc3000_socket.h"
|
||||||
#include <nuttx/wireless/cc3000/evnt_handler.h>
|
#include <nuttx/wireless/cc3000/evnt_handler.h>
|
||||||
|
@ -79,6 +79,7 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
#include <sys/time.h>
|
||||||
#include <queue.h>
|
#include <queue.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
|
@ -40,6 +40,7 @@
|
|||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
#include <sys/select.h>
|
#include <sys/select.h>
|
||||||
|
#include <sys/time.h>
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
|
@ -288,6 +288,7 @@ int connect(int sockfd, FAR const struct sockaddr *addr, socklen_t addrlen);
|
|||||||
*
|
*
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
|
struct timeval;
|
||||||
int cc3000_select(int nfds, fd_set *readfds, fd_set *writefds,fd_set *exceptfds,
|
int cc3000_select(int nfds, fd_set *readfds, fd_set *writefds,fd_set *exceptfds,
|
||||||
struct timeval *timeout);
|
struct timeval *timeout);
|
||||||
|
|
||||||
|
@ -104,13 +104,15 @@ typedef uint32_t fd_set[__SELECT_NUINT32];
|
|||||||
#undef EXTERN
|
#undef EXTERN
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
#define EXTERN extern "C"
|
#define EXTERN extern "C"
|
||||||
extern "C" {
|
extern "C"
|
||||||
|
{
|
||||||
#else
|
#else
|
||||||
#define EXTERN extern
|
#define EXTERN extern
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
EXTERN int select(int nfds, FAR fd_set *readfds, FAR fd_set *writefds,
|
struct timeval;
|
||||||
FAR fd_set *exceptfds, FAR struct timeval *timeout);
|
int select(int nfds, FAR fd_set *readfds, FAR fd_set *writefds,
|
||||||
|
FAR fd_set *exceptfds, FAR struct timeval *timeout);
|
||||||
|
|
||||||
#undef EXTERN
|
#undef EXTERN
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
|
@ -94,8 +94,9 @@
|
|||||||
#define PRIOR_OTHER_MIN 0
|
#define PRIOR_OTHER_MIN 0
|
||||||
#define PRIOR_OTHER_MAX 255
|
#define PRIOR_OTHER_MAX 255
|
||||||
|
|
||||||
/* Scheduling Priorities. NOTE: Only the idle task can take
|
/* Scheduling Priorities. NOTE: Only the idle task can take the true
|
||||||
* the true minimum priority. */
|
* minimum priority.
|
||||||
|
*/
|
||||||
|
|
||||||
#define SCHED_PRIORITY_MAX 255
|
#define SCHED_PRIORITY_MAX 255
|
||||||
#define SCHED_PRIORITY_DEFAULT 100
|
#define SCHED_PRIORITY_DEFAULT 100
|
||||||
|
@ -159,12 +159,6 @@ struct sigevent;
|
|||||||
* Public Data
|
* Public Data
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
/* extern char *tznames[]; not supported */
|
|
||||||
|
|
||||||
/********************************************************************************
|
|
||||||
* Public Function Prototypes
|
|
||||||
********************************************************************************/
|
|
||||||
|
|
||||||
#undef EXTERN
|
#undef EXTERN
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
#define EXTERN extern "C"
|
#define EXTERN extern "C"
|
||||||
@ -174,6 +168,19 @@ extern "C"
|
|||||||
#define EXTERN extern
|
#define EXTERN extern
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* daylight - Daylight savings time flag */
|
||||||
|
/* EXTERN int daylight; not supported */
|
||||||
|
|
||||||
|
/* timezone - Difference from UTC and local standard time
|
||||||
|
/* EXTERN long int timezone; not supported */
|
||||||
|
|
||||||
|
/* tzname[] - Timezone strings */
|
||||||
|
/* EXTERN FAR char *tzname[]; not supported */
|
||||||
|
|
||||||
|
/********************************************************************************
|
||||||
|
* Public Function Prototypes
|
||||||
|
********************************************************************************/
|
||||||
|
|
||||||
clock_t clock(void);
|
clock_t clock(void);
|
||||||
|
|
||||||
int clock_settime(clockid_t clockid, FAR const struct timespec *tp);
|
int clock_settime(clockid_t clockid, FAR const struct timespec *tp);
|
||||||
|
@ -42,6 +42,7 @@
|
|||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
#include <sys/time.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include "socket/socket.h"
|
#include "socket/socket.h"
|
||||||
|
@ -43,6 +43,7 @@
|
|||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
#include <sys/time.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <arch/irq.h>
|
#include <arch/irq.h>
|
||||||
|
|
||||||
|
@ -40,8 +40,10 @@
|
|||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
#include <sys/time.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include <nuttx/clock.h>
|
#include <nuttx/clock.h>
|
||||||
|
|
||||||
#include "utils/utils.h"
|
#include "utils/utils.h"
|
||||||
|
@ -39,6 +39,8 @@
|
|||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
|
#include <sys/time.h>
|
||||||
|
|
||||||
#include <nuttx/clock.h>
|
#include <nuttx/clock.h>
|
||||||
|
|
||||||
#include "utils/utils.h"
|
#include "utils/utils.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user