aboutsummaryrefslogtreecommitdiffstats
path: root/community/virtualbox-guest-additions/musl-no-glibc.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-01-24 12:27:45 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-01-24 12:30:02 +0000
commit54c94a12e787b5999338e00b50967103032f722e (patch)
tree0df51903fecda4f6f95a45e36b8c60f588248882 /community/virtualbox-guest-additions/musl-no-glibc.patch
parent262629094f233d25f4c19ed7a07f556f5763b58d (diff)
downloadaports-54c94a12e787b5999338e00b50967103032f722e.tar.bz2
aports-54c94a12e787b5999338e00b50967103032f722e.tar.xz
community/virtualbox-guest-*: move from testing
ref #5722
Diffstat (limited to 'community/virtualbox-guest-additions/musl-no-glibc.patch')
-rw-r--r--community/virtualbox-guest-additions/musl-no-glibc.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/community/virtualbox-guest-additions/musl-no-glibc.patch b/community/virtualbox-guest-additions/musl-no-glibc.patch
new file mode 100644
index 0000000000..fe4cc79379
--- /dev/null
+++ b/community/virtualbox-guest-additions/musl-no-glibc.patch
@@ -0,0 +1,45 @@
+--- ./src/VBox/Runtime/r3/linux/thread-affinity-linux.cpp.orig
++++ ./src/VBox/Runtime/r3/linux/thread-affinity-linux.cpp
+@@ -32,6 +32,8 @@
+ # define _GNU_SOURCE
+ #endif
+ #include <features.h>
++
++#if defined(__GLIBC__)
+ #if __GLIBC_PREREQ(2,4)
+
+ #include <sched.h>
+@@ -87,6 +89,11 @@
+
+ return VINF_SUCCESS;
+ }
++
++#else
++# include "../../generic/RTThreadGetAffinity-stub-generic.cpp"
++# include "../../generic/RTThreadSetAffinity-stub-generic.cpp"
++#endif
+
+ #else
+ # include "../../generic/RTThreadGetAffinity-stub-generic.cpp"
+--- ./src/VBox/Runtime/r3/linux/semeventmulti-linux.cpp.orig
++++ ./src/VBox/Runtime/r3/linux/semeventmulti-linux.cpp
+@@ -26,7 +26,7 @@
+
+
+ #include <features.h>
+-#if __GLIBC_PREREQ(2,6) && !defined(IPRT_WITH_FUTEX_BASED_SEMS)
++#if defined(__GLIBC__) && !defined(IPRT_WITH_FUTEX_BASED_SEMS)
+
+ /*
+ * glibc 2.6 fixed a serious bug in the mutex implementation. We wrote this
+--- ./src/VBox/Runtime/r3/linux/semevent-linux.cpp.orig
++++ ./src/VBox/Runtime/r3/linux/semevent-linux.cpp
+@@ -25,7 +25,7 @@
+ */
+
+ #include <features.h>
+-#if __GLIBC_PREREQ(2,6) && !defined(IPRT_WITH_FUTEX_BASED_SEMS)
++#if defined(__GLIBC__) && !defined(IPRT_WITH_FUTEX_BASED_SEMS)
+
+ /*
+ * glibc 2.6 fixed a serious bug in the mutex implementation. We wrote this