You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.6 KiB

  1. --- a/boost/asio/detail/impl/eventfd_select_interrupter.ipp
  2. +++ b/boost/asio/detail/impl/eventfd_select_interrupter.ipp
  3. @@ -23,11 +23,11 @@
  4. #include <sys/stat.h>
  5. #include <sys/types.h>
  6. #include <fcntl.h>
  7. -#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 8
  8. +#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 2
  9. # include <asm/unistd.h>
  10. -#else // __GLIBC__ == 2 && __GLIBC_MINOR__ < 8
  11. +#else // __GLIBC__ == 2 && __GLIBC_MINOR__ < 2
  12. # include <sys/eventfd.h>
  13. -#endif // __GLIBC__ == 2 && __GLIBC_MINOR__ < 8
  14. +#endif // __GLIBC__ == 2 && __GLIBC_MINOR__ < 2
  15. #include <boost/asio/detail/cstdint.hpp>
  16. #include <boost/asio/detail/eventfd_select_interrupter.hpp>
  17. #include <boost/asio/detail/throw_error.hpp>
  18. @@ -46,14 +46,14 @@ eventfd_select_interrupter::eventfd_sele
  19. void eventfd_select_interrupter::open_descriptors()
  20. {
  21. -#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 8
  22. +#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 2
  23. write_descriptor_ = read_descriptor_ = syscall(__NR_eventfd, 0);
  24. if (read_descriptor_ != -1)
  25. {
  26. ::fcntl(read_descriptor_, F_SETFL, O_NONBLOCK);
  27. ::fcntl(read_descriptor_, F_SETFD, FD_CLOEXEC);
  28. }
  29. -#else // __GLIBC__ == 2 && __GLIBC_MINOR__ < 8
  30. +#else // __GLIBC__ == 2 && __GLIBC_MINOR__ < 2
  31. # if defined(EFD_CLOEXEC) && defined(EFD_NONBLOCK)
  32. write_descriptor_ = read_descriptor_ =
  33. ::eventfd(0, EFD_CLOEXEC | EFD_NONBLOCK);
  34. @@ -70,7 +70,7 @@ void eventfd_select_interrupter::open_de
  35. ::fcntl(read_descriptor_, F_SETFD, FD_CLOEXEC);
  36. }
  37. }
  38. -#endif // __GLIBC__ == 2 && __GLIBC_MINOR__ < 8
  39. +#endif // __GLIBC__ == 2 && __GLIBC_MINOR__ < 2
  40. if (read_descriptor_ == -1)
  41. {