aboutsummaryrefslogtreecommitdiffstats
path: root/community/virtualbox-guest-additions/glibc-symvers.patch
blob: a95b7df34f1e6c61e0f534eb6ec0c8d4a8145c7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 */