Browse Source

tee,vmsplice: mark them as GNU extensions

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger 13 years ago
parent
commit
fc4b1388b3
2 changed files with 8 additions and 6 deletions
  1. 4 3
      libc/sysdeps/linux/common/tee.c
  2. 4 3
      libc/sysdeps/linux/common/vmsplice.c

+ 4 - 3
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

+ 4 - 3
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