--- a/boost/asio/detail/impl/eventfd_select_interrupter.ipp +++ b/boost/asio/detail/impl/eventfd_select_interrupter.ipp @@ -23,11 +23,11 @@ #include #include #include -#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 8 +#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 2 # include -#else // __GLIBC__ == 2 && __GLIBC_MINOR__ < 8 +#else // __GLIBC__ == 2 && __GLIBC_MINOR__ < 2 # include -#endif // __GLIBC__ == 2 && __GLIBC_MINOR__ < 8 +#endif // __GLIBC__ == 2 && __GLIBC_MINOR__ < 2 #include #include #include @@ -46,14 +46,14 @@ eventfd_select_interrupter::eventfd_sele void eventfd_select_interrupter::open_descriptors() { -#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 8 +#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 2 write_descriptor_ = read_descriptor_ = syscall(__NR_eventfd, 0); if (read_descriptor_ != -1) { ::fcntl(read_descriptor_, F_SETFL, O_NONBLOCK); ::fcntl(read_descriptor_, F_SETFD, FD_CLOEXEC); } -#else // __GLIBC__ == 2 && __GLIBC_MINOR__ < 8 +#else // __GLIBC__ == 2 && __GLIBC_MINOR__ < 2 # if defined(EFD_CLOEXEC) && defined(EFD_NONBLOCK) write_descriptor_ = read_descriptor_ = ::eventfd(0, EFD_CLOEXEC | EFD_NONBLOCK); @@ -70,7 +70,7 @@ void eventfd_select_interrupter::open_de ::fcntl(read_descriptor_, F_SETFD, FD_CLOEXEC); } } -#endif // __GLIBC__ == 2 && __GLIBC_MINOR__ < 8 +#endif // __GLIBC__ == 2 && __GLIBC_MINOR__ < 2 if (read_descriptor_ == -1) {