From: Matthew Fioravante Date: Tue, 9 Oct 2012 09:39:09 +0000 (+0100) Subject: minios: add select definition to sys/time.h when HAVE_LIBC is defined X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=6246ebca6398422fa0e17c3946c92b487d0765e3;p=people%2Fliuw%2Flibxenctrl-split%2Fmini-os.git minios: add select definition to sys/time.h when HAVE_LIBC is defined This patch adds the select function to sys/time.h when HAVE_LIBC is defined, which is according to standard (see the select() manpage). It also removes a redudant lwip include from posix/sys/select.h. Signed-off-by: Matthew Fioravante Acked-by: Samuel Thibault Committed-by: Ian Campbell --- diff --git a/include/posix/sys/select.h b/include/posix/sys/select.h index a9337be..5132c51 100644 --- a/include/posix/sys/select.h +++ b/include/posix/sys/select.h @@ -2,7 +2,6 @@ #define _POSIX_SELECT_H #include -#include int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout); #endif /* _POSIX_SELECT_H */ diff --git a/include/sys/time.h b/include/sys/time.h index d6623a4..3be3653 100644 --- a/include/sys/time.h +++ b/include/sys/time.h @@ -22,6 +22,7 @@ #ifdef HAVE_LIBC #include_next + #else struct timespec { time_t tv_sec; @@ -37,6 +38,10 @@ struct timeval { }; int gettimeofday(struct timeval *tv, void *tz); + +#endif +#ifdef HAVE_LIBC +#include #endif #endif /* _MINIOS_SYS_TIME_H_ */