[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] minios: add select definition to sys/time.h when HAVE_LIBC is defined


  • To: xen-changelog@xxxxxxxxxxxxxxxxxxx
  • From: Xen patchbot-unstable <patchbot@xxxxxxx>
  • Date: Wed, 10 Oct 2012 22:11:15 +0000
  • Delivery-date: Wed, 10 Oct 2012 22:11:22 +0000
  • List-id: "Change log for Mercurial \(receive only\)" <xen-changelog.lists.xen.org>

# HG changeset patch
# User Matthew Fioravante <matthew.fioravante@xxxxxxxxxx>
# Date 1349775549 -3600
# Node ID dbd1e837cb5485c0961082b5f6464e01a2d9979d
# Parent  566061fefa47f16acf6b134520a160a832240a5c
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@xxxxxxxxxx>
Acked-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx>
Committed-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---


diff -r 566061fefa47 -r dbd1e837cb54 extras/mini-os/include/posix/sys/select.h
--- a/extras/mini-os/include/posix/sys/select.h Tue Oct 09 10:39:08 2012 +0100
+++ b/extras/mini-os/include/posix/sys/select.h Tue Oct 09 10:39:09 2012 +0100
@@ -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 */
diff -r 566061fefa47 -r dbd1e837cb54 extras/mini-os/include/sys/time.h
--- a/extras/mini-os/include/sys/time.h Tue Oct 09 10:39:08 2012 +0100
+++ b/extras/mini-os/include/sys/time.h Tue Oct 09 10:39:09 2012 +0100
@@ -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_ */

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.