소스 검색

* Fixed compiler error in platform/select

master
bergmann 4 년 전
부모
커밋
b5d782ef07
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      include/cppcore/platform/select.inl

+ 1
- 1
include/cppcore/platform/select.inl 파일 보기

@@ -39,7 +39,7 @@ namespace cppcore
{ {
using duration_type = std::chrono::duration<T_rep, T_period>; using duration_type = std::chrono::duration<T_rep, T_period>;


auto tmp = duration_cast<timespec>(timeout);
auto tmp = duration_cast<timeval>(timeout);
auto ret = ::select(fd_count, &read, &write, &except, &tmp); auto ret = ::select(fd_count, &read, &write, &except, &tmp);
if (ret < 0) if (ret < 0)
return __impl::throw_select_error(errno); return __impl::throw_select_error(errno);


불러오는 중...
취소
저장