xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH mini-os enhancements for vtpm 6/8] add select() to sys/time.h
@ 2012-09-17 22:03 Matthew Fioravante
  2012-09-17 22:18 ` Samuel Thibault
  0 siblings, 1 reply; 2+ messages in thread
From: Matthew Fioravante @ 2012-09-17 22:03 UTC (permalink / raw)
  To: Samuel Thibault, xen-devel@lists.xensource.com


[-- Attachment #1.1: Type: text/plain, Size: 724 bytes --]

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 matthew.fioravante@jhuapl.edu

diff --git a/extras/mini-os/include/sys/time.h
b/extras/mini-os/include/sys/time.h
--- a/extras/mini-os/include/sys/time.h
+++ b/extras/mini-os/include/sys/time.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_ */
-- 
1.7.4.4



[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 1459 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH mini-os enhancements for vtpm 6/8] add select() to sys/time.h
  2012-09-17 22:03 [PATCH mini-os enhancements for vtpm 6/8] add select() to sys/time.h Matthew Fioravante
@ 2012-09-17 22:18 ` Samuel Thibault
  0 siblings, 0 replies; 2+ messages in thread
From: Samuel Thibault @ 2012-09-17 22:18 UTC (permalink / raw)
  To: Matthew Fioravante; +Cc: xen-devel@lists.xensource.com

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 matthew.fioravante@jhuapl.edu

Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>

Samuel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-09-17 22:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-17 22:03 [PATCH mini-os enhancements for vtpm 6/8] add select() to sys/time.h Matthew Fioravante
2012-09-17 22:18 ` Samuel Thibault

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).