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