diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-12-28 07:10:02 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-12-28 07:12:09 +0000 |
commit | 9d947e571f1cf4a7bb540caec1425ec01373f930 (patch) | |
tree | 2866d19a737581ff02272ea90a3b2b48671cf093 /community/virtualbox-guest-additions/glibc-symvers.patch | |
parent | c2890f4ac8afa8f41d0eb51e506fe1028c20887e (diff) | |
download | aports-9d947e571f1cf4a7bb540caec1425ec01373f930.tar.bz2 aports-9d947e571f1cf4a7bb540caec1425ec01373f930.tar.xz |
community/virtualbox-guest-additions: upgrade to 6.0.0
Diffstat (limited to 'community/virtualbox-guest-additions/glibc-symvers.patch')
-rw-r--r-- | community/virtualbox-guest-additions/glibc-symvers.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/community/virtualbox-guest-additions/glibc-symvers.patch b/community/virtualbox-guest-additions/glibc-symvers.patch new file mode 100644 index 0000000000..a95b7df34f --- /dev/null +++ b/community/virtualbox-guest-additions/glibc-symvers.patch @@ -0,0 +1,32 @@ +diff --git a/include/iprt/linux/symvers.h b/include/iprt/linux/symvers.h +index 7d552b1..e5edbeb 100644 +--- a/include/iprt/linux/symvers.h ++++ b/include/iprt/linux/symvers.h +@@ -37,12 +37,14 @@ + /* Use versions of glibc symbols which are available in 32-bit EL3 or + * 64-bit EL4. Currently only those symbols needed by the Additions, + * though this could probably be extended to work for host builds too. */ ++#if defined(__GLIBC__) + #if defined(RT_ARCH_AMD64) + __asm__(".symver memcpy,memcpy@GLIBC_2.2.5"); + __asm__(".symver posix_spawn,posix_spawn@GLIBC_2.2.5"); + #else /* RT_ARCH_X86 */ + __asm__(".symver posix_spawn,posix_spawn@GLIBC_2.2"); + #endif ++#endif + + /* Do not use *_chk functions */ + #undef _FORTIFY_SOURCE +@@ -65,10 +67,12 @@ __asm__(".symver posix_spawn,posix_spawn@GLIBC_2.2"); + #ifdef fnctl + # undef fcntl + #endif ++#if defined(__GLIBC__) + #if defined(RT_ARCH_AMD64) + __asm__(".symver fcntl64,fcntl@GLIBC_2.2.5"); + #else + __asm__(".symver fcntl64,fcntl@GLIBC_2.0"); + #endif ++#endif + + #endif /* ___iprt_linux_symvers_h */ |