0004-Remove-assumptions-about-glibc-being-only-libc-imple.patch 1.2 KB

123456789101112131415161718192021222324252627
  1. From a0983d84185f04c4e40778fe951fde4439894882 Mon Sep 17 00:00:00 2001
  2. From: Khem Raj <raj.khem@gmail.com>
  3. Date: Sun, 16 Jul 2017 07:37:03 -0700
  4. Subject: [PATCH] Remove assumptions about glibc being only libc
  5. implementation on linux
  6. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  7. [Retrieved (and updated to work on current version) from:
  8. http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-Remove-assumptions-about-glibc-being-only-libc-imple.patch?h=sumo]
  9. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  10. ---
  11. open-vm-tools/lib/file/fileIOPosix.c | 2 +-
  12. 2 files changed, 3 insertions(+), 1 deletion(-)
  13. Index: open-vm-tools/lib/file/fileIOPosix.c
  14. ===================================================================
  15. --- open-vm-tools.orig/lib/file/fileIOPosix.c
  16. +++ open-vm-tools/lib/file/fileIOPosix.c
  17. @@ -205,7 +205,7 @@ static AlignedPool alignedPool;
  18. * are not available in any header file.
  19. */
  20. -#if defined(__linux__) && !defined(__ANDROID__)
  21. +#if defined(__linux__) && defined(__GLIBC__)
  22. #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
  23. /*
  24. * We want preadv/pwritev. But due to FOB=64, the symbols are -64.