Suffer the consequences of moving struct timeval to its correct location

This commit is contained in:
Gregory Nutt 2015-02-15 15:18:35 -06:00
parent c2234e058f
commit d6704a1cd7
15 changed files with 37 additions and 11 deletions

View File

@ -50,6 +50,7 @@
#include <winsock2.h>
#include <iphlpapi.h>
#include <sys/time.h>
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>

View File

@ -48,6 +48,7 @@
#include <nuttx/config.h>
#include <sys/types.h>
#include <sys/time.h>
#include <stdint.h>
#include <stdbool.h>

View File

@ -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,
struct timeval *timeout);

View File

@ -38,6 +38,7 @@
#include <sys/types.h>
#include <sys/select.h>
#include <sys/time.h>
#include <stdio.h>
#include <string.h>

View File

@ -39,11 +39,13 @@
* Included Files
*****************************************************************************/
#include <sys/time.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <debug.h>
#include <stdlib.h>
#include <nuttx/wireless/cc3000/hci.h>
#include "cc3000_socket.h"
#include <nuttx/wireless/cc3000/evnt_handler.h>

View File

@ -79,6 +79,7 @@
****************************************************************************/
#include <sys/socket.h>
#include <sys/time.h>
#include <queue.h>
#include <time.h>
#include <netinet/in.h>

View File

@ -40,6 +40,7 @@
#include <nuttx/config.h>
#include <sys/select.h>
#include <sys/time.h>
#include <string.h>
#include <poll.h>

View File

@ -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,
struct timeval *timeout);

View File

@ -104,13 +104,15 @@ typedef uint32_t fd_set[__SELECT_NUINT32];
#undef EXTERN
#if defined(__cplusplus)
#define EXTERN extern "C"
extern "C" {
extern "C"
{
#else
#define EXTERN extern
#endif
EXTERN int select(int nfds, FAR fd_set *readfds, FAR fd_set *writefds,
FAR fd_set *exceptfds, FAR struct timeval *timeout);
struct timeval;
int select(int nfds, FAR fd_set *readfds, FAR fd_set *writefds,
FAR fd_set *exceptfds, FAR struct timeval *timeout);
#undef EXTERN
#if defined(__cplusplus)

View File

@ -94,8 +94,9 @@
#define PRIOR_OTHER_MIN 0
#define PRIOR_OTHER_MAX 255
/* Scheduling Priorities. NOTE: Only the idle task can take
* the true minimum priority. */
/* Scheduling Priorities. NOTE: Only the idle task can take the true
* minimum priority.
*/
#define SCHED_PRIORITY_MAX 255
#define SCHED_PRIORITY_DEFAULT 100

View File

@ -159,12 +159,6 @@ struct sigevent;
* Public Data
********************************************************************************/
/* extern char *tznames[]; not supported */
/********************************************************************************
* Public Function Prototypes
********************************************************************************/
#undef EXTERN
#if defined(__cplusplus)
#define EXTERN extern "C"
@ -174,6 +168,19 @@ extern "C"
#define EXTERN extern
#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);
int clock_settime(clockid_t clockid, FAR const struct timespec *tp);

View File

@ -42,6 +42,7 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <errno.h>
#include "socket/socket.h"

View File

@ -43,6 +43,7 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <errno.h>
#include <arch/irq.h>

View File

@ -40,8 +40,10 @@
#include <nuttx/config.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <stdint.h>
#include <errno.h>
#include <nuttx/clock.h>
#include "utils/utils.h"

View File

@ -39,6 +39,8 @@
#include <nuttx/config.h>
#include <sys/time.h>
#include <nuttx/clock.h>
#include "utils/utils.h"