0005-forkd-disable-eventfd-for-uclibc.patch 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. From 62ef0d97cfa2ed0142fc69c6e6395a570bea9215 Mon Sep 17 00:00:00 2001
  2. From: Julien Corjon <corjon.j@ecagroup.com>
  3. Date: Tue, 21 Jul 2015 11:59:57 +0200
  4. Subject: [PATCH] forkd - disable eventfd for uClibc <= 0.9.33
  5. eventfd is not implemented in uClibc <= 0.9.33
  6. Upstream-Status : https://bugreports.qt.io/browse/QTBUG-47337
  7. Signed-off-by: Julien Corjon <corjon.j@ecagroup.com>
  8. ---
  9. src/3rdparty/forkfd/forkfd.c | 4 ++++
  10. 1 file changed, 4 insertions(+)
  11. diff --git a/src/3rdparty/forkfd/forkfd.c b/src/3rdparty/forkfd/forkfd.c
  12. index 8d08f40..fa47cdf 100644
  13. --- a/src/3rdparty/forkfd/forkfd.c
  14. +++ b/src/3rdparty/forkfd/forkfd.c
  15. @@ -48,6 +48,10 @@
  16. # if (defined(__GLIBC__) && (__GLIBC__ << 16) + __GLIBC_MINOR__ >= 0x209) || defined(__BIONIC__)
  17. # define HAVE_PIPE2 1
  18. # endif
  19. +# if (defined(__UCLIBC__) && (__UCLIBC_MAJOR__ == 0) && (__UCLIBC_MINOR__ < 9 || (__UCLIBC_MINOR__ == 9 && __UCLIBC_SUBLEVEL__ <= 33)))
  20. +# undef HAVE_EVENTFD
  21. +# undef HAVE_PIPE2
  22. +# endif
  23. #endif
  24. #if _POSIX_VERSION-0 >= 200809L || _XOPEN_VERSION-0 >= 500
  25. --
  26. 2.1.0