OSDN Git Service

tee,vmsplice: mark them as GNU extensions
authorPeter S. Mazinger <ps.m@gmx.net>
Wed, 6 Apr 2011 10:36:33 +0000 (12:36 +0200)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 15 Jun 2012 12:00:35 +0000 (14:00 +0200)
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libc/sysdeps/linux/common/tee.c
libc/sysdeps/linux/common/vmsplice.c

index 5047767..2b11d9e 100644 (file)
@@ -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
index dd0640e..b0d7193 100644 (file)
@@ -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