Просмотр исходного кода

select: fix compilation failure with very old kernel

See github bug report #17 for details.
Thanks to the Freetz-ng project for the fix.
Waldemar Brodkorb 3 дней назад
Родитель
Сommit
38cd80ebfe
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      libc/sysdeps/linux/common/select.c

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

@@ -55,7 +55,7 @@ int __NC(select)(int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
 	return INLINE_SYSCALL(pselect6, 6, n, readfds, writefds, exceptfds, ts, 0);
 #endif
 #elif defined(__NR_select)
-	return INLINE_SYSCALL(select, 5, n, readfds, writefds, exceptfds, ts);
+	return INLINE_SYSCALL(select, 5, n, readfds, writefds, exceptfds, timeout);
 #endif
 }
 /* we should guard it, but we need it in other files, so let it fail