mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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 <matthew.fioravante@jhuapl.edu> Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Committed-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
1 parent
78ef2bb502
commit
5c2852a2a5
2 files changed
+5
-1
No files matched your search
@@ -2,7 +2,6 @@
|
||||
#define _POSIX_SELECT_H
|
||||
|
||||
#include <sys/time.h>
|
||||
#include <lwip/sockets.h>
|
||||
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout);
|
||||
|
||||
#endif /* _POSIX_SELECT_H */
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
#ifdef HAVE_LIBC
|
||||
#include_next <sys/time.h>
|
||||
|
||||
#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 <sys/select.h>
|
||||
#endif
|
||||
|
||||
#endif /* _MINIOS_SYS_TIME_H_ */
|
||||