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