Merge pull request #9296 from gladiac1337/haproxy-v2.0.0-fix
[feed/packages.git] / libs / boost / patches / 010-uclibc-ng.patch
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
20 void eventfd_select_interrupter::open_descriptors()
21 {
22 -#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 8
23 +#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 2
24 write_descriptor_ = read_descriptor_ = syscall(__NR_eventfd, 0);
25 if (read_descriptor_ != -1)
26 {
27 ::fcntl(read_descriptor_, F_SETFL, O_NONBLOCK);
28 ::fcntl(read_descriptor_, F_SETFD, FD_CLOEXEC);
29 }
30 -#else // __GLIBC__ == 2 && __GLIBC_MINOR__ < 8
31 +#else // __GLIBC__ == 2 && __GLIBC_MINOR__ < 2
32 # if defined(EFD_CLOEXEC) && defined(EFD_NONBLOCK)
33 write_descriptor_ = read_descriptor_ =
34 ::eventfd(0, EFD_CLOEXEC | EFD_NONBLOCK);
35 @@ -70,7 +70,7 @@ void eventfd_select_interrupter::open_de
36 ::fcntl(read_descriptor_, F_SETFD, FD_CLOEXEC);
37 }
38 }
39 -#endif // __GLIBC__ == 2 && __GLIBC_MINOR__ < 8
40 +#endif // __GLIBC__ == 2 && __GLIBC_MINOR__ < 2
41
42 if (read_descriptor_ == -1)
43 {