aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/xf86-video-virtualbox/musl-no-glibc.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-06-03 11:41:17 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-06-03 11:41:17 +0000
commitd33fcc2fda629fc287a961ed5e5d6bbef3938bbd (patch)
tree7a4cbdb0803075f713b69c19a6df5c1682782194 /unmaintained/xf86-video-virtualbox/musl-no-glibc.patch
parent6fa5539d2b47239c5829fc6a3631fa8d9fc7f677 (diff)
downloadaports-d33fcc2fda629fc287a961ed5e5d6bbef3938bbd.tar.bz2
aports-d33fcc2fda629fc287a961ed5e5d6bbef3938bbd.tar.xz
testing/xf86-video-virtualbox: moved to unmaintained
Diffstat (limited to 'unmaintained/xf86-video-virtualbox/musl-no-glibc.patch')
-rw-r--r--unmaintained/xf86-video-virtualbox/musl-no-glibc.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/unmaintained/xf86-video-virtualbox/musl-no-glibc.patch b/unmaintained/xf86-video-virtualbox/musl-no-glibc.patch
new file mode 100644
index 0000000000..65372f5d9d
--- /dev/null
+++ b/unmaintained/xf86-video-virtualbox/musl-no-glibc.patch
@@ -0,0 +1,23 @@
+--- ./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"