aboutsummarylogtreecommitdiffstats
path: root/seawright.patch
diff options
context:
space:
mode:
authorYuuki Galaxy2018-08-29 19:07:38 +0800
committerYuuki Galaxy2018-08-29 19:07:38 +0800
commit7eadb10d4dc8edde10ed399107551a280185f140 (patch)
tree5c48dcb2aa96dd01c1446706c7d7abf323e54ad1 /seawright.patch
parentc31e5fd4ad7db9a4cab0ea0119762862cadb81c8 (diff)
downloadaur-7eadb10d4dc8edde10ed399107551a280185f140.tar.gz
Add patch from seawright
Diffstat (limited to 'seawright.patch')
-rw-r--r--seawright.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/seawright.patch b/seawright.patch
new file mode 100644
index 000000000000..28d34b0d1bc9
--- /dev/null
+++ b/seawright.patch
@@ -0,0 +1,29 @@
+--- a/setup/Linux/oss/build/osscore.c 2018-07-22 16:35:24.559690072 +0100
++++ b/setup/Linux/oss/build/osscore.c 2018-07-22 16:39:42.948338371 +0100
+@@ -32,6 +32,7 @@
+ #include <linux/sched.h>
+ #include <linux/interrupt.h>
+ #if LINUX_VERSION_CODE > KERNEL_VERSION(3,10,0)
++#include <linux/cred.h>
+ #include <linux/uidgid.h>
+ #endif
+ #undef strlen
+@@ -475,13 +476,17 @@
+ unsigned int
+ oss_get_uid (void)
+ {
+-#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0)
++ return current->cred->uid.val;
++#else
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0)
+ return __kuid_val(current->cred->uid);
+ #elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29)
+ return current->cred->uid;
+ #else
+ return current->uid;
+ #endif
++#endif
+ return 0;
+ }
+