aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/include
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-03-18 11:26:21 +0000
committerKeir Fraser <keir.fraser@citrix.com>2008-03-18 11:26:21 +0000
commit1add612bf58d6c49a4fe8d93190dea514d6dc7d8 (patch)
tree1c1a7838977bd8899964c58f627bc20ef2893937 /extras/mini-os/include
parentb698a6a18c01ee95ca3cc764e4ba7f8d55593c3b (diff)
downloadxen-1add612bf58d6c49a4fe8d93190dea514d6dc7d8.tar.gz
xen-1add612bf58d6c49a4fe8d93190dea514d6dc7d8.tar.bz2
xen-1add612bf58d6c49a4fe8d93190dea514d6dc7d8.zip
Stubdom: add support for file creation.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Diffstat (limited to 'extras/mini-os/include')
-rw-r--r--extras/mini-os/include/fcntl.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/extras/mini-os/include/fcntl.h b/extras/mini-os/include/fcntl.h
index 34a6484d35..0615790e53 100644
--- a/extras/mini-os/include/fcntl.h
+++ b/extras/mini-os/include/fcntl.h
@@ -1,6 +1,10 @@
#ifndef _I386_FCNTL_H
#define _I386_FCNTL_H
+#ifdef HAVE_LIBC
+#include_next <fcntl.h>
+#else
+
/* open/fcntl - O_SYNC is only implemented on blocks devices and on files
located on an ext2 file system */
#define O_ACCMODE 0003
@@ -90,3 +94,5 @@ struct flock64 {
int open(const char *path, int flags, ...);
int fcntl(int fd, int cmd, ...);
#endif
+
+#endif