summaryrefslogtreecommitdiff
path: root/recipes/linux-libc-headers/linux-libc-headers-2.6.30/uio-header.patch
diff options
context:
space:
mode:
authorStanislav Brabec <utx@penguin.cz>2009-08-26 19:37:12 +0000
committerutx@penguin.cz <utx@penguin.cz>2009-08-26 19:37:12 +0000
commit8ba4ce90740eb50ac0b1a394280ff94e388bda6a (patch)
tree6005542975310072cbdb8fe780e514f3b1c0c0e3 /recipes/linux-libc-headers/linux-libc-headers-2.6.30/uio-header.patch
parent2c9d61f33d320d3e93dbffe4c5009e8c5041a0c1 (diff)
linux-libc-headers: Added headers for version 2.6.30.
Diffstat (limited to 'recipes/linux-libc-headers/linux-libc-headers-2.6.30/uio-header.patch')
-rw-r--r--recipes/linux-libc-headers/linux-libc-headers-2.6.30/uio-header.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/recipes/linux-libc-headers/linux-libc-headers-2.6.30/uio-header.patch b/recipes/linux-libc-headers/linux-libc-headers-2.6.30/uio-header.patch
new file mode 100644
index 0000000000..50ca855cab
--- /dev/null
+++ b/recipes/linux-libc-headers/linux-libc-headers-2.6.30/uio-header.patch
@@ -0,0 +1,41 @@
+diff --git a/include/linux/uio.h b/include/linux/uio.h
+index b7fe138..98c1143 100644
+--- a/include/linux/uio.h
++++ b/include/linux/uio.h
+@@ -19,15 +19,6 @@ struct iovec
+ __kernel_size_t iov_len; /* Must be size_t (1003.1g) */
+ };
+
+-#ifdef __KERNEL__
+-
+-struct kvec {
+- void *iov_base; /* and that should *never* hold a userland pointer */
+- size_t iov_len;
+-};
+-
+-#endif
+-
+ /*
+ * UIO_MAXIOV shall be at least 16 1003.1g (5.4.1.1)
+ */
+@@ -35,6 +26,13 @@ struct kvec {
+ #define UIO_FASTIOV 8
+ #define UIO_MAXIOV 1024
+
++#ifdef __KERNEL__
++
++struct kvec {
++ void *iov_base; /* and that should *never* hold a userland pointer */
++ size_t iov_len;
++};
++
+ /*
+ * Total number of bytes covered by an iovec.
+ *
+@@ -53,5 +51,6 @@ static inline size_t iov_length(const struct iovec *iov, unsigned long nr_segs)
+ }
+
+ unsigned long iov_shorten(struct iovec *iov, unsigned long nr_segs, size_t to);
++#endif
+
+ #endif