Skip to contentSkip to conversation

add select() to sys/time.h

PATCH In review Matthew Fioravante 2 participants 2 messages Sep 17, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 6/8 add select() to sys/time.h

This patch adds the select function to sys/time.h when HAVE_LIBC is defined, which is according to standard. (see the select() manpage)

Signed of by: Matthew Fioravante [email protected]

(quoted diff) +0 -0

b/extras/mini-os/include/sys/time.h

extras/mini-os/include/sys/time.h +5 -0
@@ -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_ */
Signature · 1 line
1.7.4.4

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

Acked-by on v1 6/8
#1 lore raw
Quoted 5 lines · Matthew Fioravante, le Mon 17 Sep 2012 18:03:08 -0400, a écrit :

This patch adds the select function to sys/time.h when HAVE_LIBC is defined, which is according to standard. (see the select() manpage)

Signed of by: Matthew Fioravante [email protected]

Samuel