aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/include/posix
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-07-10 14:15:46 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-07-10 14:15:46 +0100
commit8f969983389d428de381469944712e468f99e345 (patch)
treea61f39a4b60205164f696e0d3222fd3019965582 /extras/mini-os/include/posix
parent79961b311e61cb274d817d15e073ad511918a36e (diff)
downloadxen-8f969983389d428de381469944712e468f99e345.tar.gz
xen-8f969983389d428de381469944712e468f99e345.tar.bz2
xen-8f969983389d428de381469944712e468f99e345.zip
stubdom: fixes to compile with qemu-xen
This adds fixes to the stub domain build into compiling Ian Jackson's qemu-xen. The most notable change is that mini-os headers now #include each other through a mini-os/ prefix, so that we can turn all -I into -isystem and still be sure that we include Mini-OS headers (and not qemu's console.h or blktaplib's list.h for instance...). Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Diffstat (limited to 'extras/mini-os/include/posix')
-rw-r--r--extras/mini-os/include/posix/limits.h2
-rw-r--r--extras/mini-os/include/posix/sys/select.h1
-rw-r--r--extras/mini-os/include/posix/unistd.h3
3 files changed, 3 insertions, 3 deletions
diff --git a/extras/mini-os/include/posix/limits.h b/extras/mini-os/include/posix/limits.h
index 5dd0e7d3b1..c45e0399d4 100644
--- a/extras/mini-os/include/posix/limits.h
+++ b/extras/mini-os/include/posix/limits.h
@@ -1,7 +1,7 @@
#ifndef _POSIX_LIMITS_H
#define _POSIX_LIMITS_H
-#include <arch_limits.h>
+#include <mini-os/arch_limits.h>
#define CHAR_BIT 8
diff --git a/extras/mini-os/include/posix/sys/select.h b/extras/mini-os/include/posix/sys/select.h
index 5132c51224..a9337be4fc 100644
--- a/extras/mini-os/include/posix/sys/select.h
+++ b/extras/mini-os/include/posix/sys/select.h
@@ -2,6 +2,7 @@
#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 --git a/extras/mini-os/include/posix/unistd.h b/extras/mini-os/include/posix/unistd.h
index 0cd9396ec9..373f07205a 100644
--- a/extras/mini-os/include/posix/unistd.h
+++ b/extras/mini-os/include/posix/unistd.h
@@ -2,8 +2,7 @@
#define _POSIX_UNISTD_H
#include_next <unistd.h>
-#include <sys/select.h>
-#include <arch_limits.h>
+#include <mini-os/arch_limits.h>
#define getpagesize() __PAGE_SIZE