소스 검색

uClinux 2.0 doesn't have the poll system call, just check for the
definition before using it.

David McCullough 24 년 전
부모
커밋
b83c05cb3e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      libc/sysdeps/linux/common/syscalls.c

+ 1 - 1
libc/sysdeps/linux/common/syscalls.c

@@ -1003,7 +1003,7 @@ _syscall4(__ptr_t, mremap, __ptr_t, old_address, size_t, old_size, size_t,
 #endif	
 
 //#define __NR_poll                     168
-#ifdef L_poll
+#if defined(L_poll) && defined(__NR_poll) /* uClinux 2.0 doesn't have poll */
 #include <sys/poll.h>
 _syscall3(int, poll, struct pollfd *, fds, unsigned long int, nfds, int, timeout);
 #endif