[git commit ldso-future] tee,vmsplice: mark them as GNU extensions
Peter S. Mazinger
ps.m at gmx.net
Wed Mar 30 11:53:36 UTC 2011
commit: http://git.uclibc.org/uClibc/commit/?id=d00fe85f15b315a78e179481fbba582e8e62e378
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/ldso-future
Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
---
libc/sysdeps/linux/common/tee.c | 7 ++++---
libc/sysdeps/linux/common/vmsplice.c | 7 ++++---
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/libc/sysdeps/linux/common/tee.c b/libc/sysdeps/linux/common/tee.c
index 5047767..2b11d9e 100644
--- a/libc/sysdeps/linux/common/tee.c
+++ b/libc/sysdeps/linux/common/tee.c
@@ -8,9 +8,10 @@
*/
#include <sys/syscall.h>
-#include <fcntl.h>
-#ifdef __NR_tee
+#if defined __NR_tee && defined __USE_GNU
+# include <fcntl.h>
+
_syscall4(ssize_t, tee, int, __fdin, int, __fdout, size_t, __len,
- unsigned int, __flags)
+ unsigned int, __flags)
#endif
diff --git a/libc/sysdeps/linux/common/vmsplice.c b/libc/sysdeps/linux/common/vmsplice.c
index dd0640e..b0d7193 100644
--- a/libc/sysdeps/linux/common/vmsplice.c
+++ b/libc/sysdeps/linux/common/vmsplice.c
@@ -8,9 +8,10 @@
*/
#include <sys/syscall.h>
-#include <fcntl.h>
-#ifdef __NR_vmsplice
+#if defined __NR_vmsplice && defined __USE_GNU
+# include <fcntl.h>
+
_syscall4(ssize_t, vmsplice, int, __fdout, const struct iovec *, __iov,
- size_t, __count, unsigned int, __flags)
+ size_t, __count, unsigned int, __flags)
#endif
--
1.7.3.4
More information about the uClibc-cvs
mailing list