소스 검색

guard new syscalls preadv/pwritev

Waldemar Brodkorb 7 년 전
부모
커밋
deccf06484
2개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      libc/sysdeps/linux/common/preadv.c
  2. 2 0
      libc/sysdeps/linux/common/pwritev.c

+ 2 - 0
libc/sysdeps/linux/common/preadv.c

@@ -19,8 +19,10 @@
 #include <sys/syscall.h>
 #include <unistd.h>
 
+#ifdef __NR_preadv
 ssize_t
 preadv (int fd, const struct iovec *vector, int count, off_t offset)
 {
   return INLINE_SYSCALL (preadv, 4, fd, vector, count, offset);
 }
+#endif

+ 2 - 0
libc/sysdeps/linux/common/pwritev.c

@@ -19,8 +19,10 @@
 #include <sys/syscall.h>
 #include <unistd.h>
 
+#ifdef __NR_pwritev
 ssize_t
 pwritev (int fd, const struct iovec *vector, int count, off_t offset)
 {
   return INLINE_SYSCALL (pwritev, 4, fd, vector, count, offset);
 }
+#endif