blob: 65372f5d9db0aefb43aed2bfb0ba30b6ebec2488 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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"
|