diff options
author | V3n3RiX <venerix@rogentos.ro> | 2016-03-19 20:31:18 +0000 |
---|---|---|
committer | V3n3RiX <venerix@rogentos.ro> | 2016-03-19 20:31:18 +0000 |
commit | 2279f39deeb120e7bb8f8c290c4c76c4d92334c2 (patch) | |
tree | f525bd870ff8af5c835bb2beef0e898fe77bdf4d /sys-apps/systemd/files/226-kcmp.patch | |
parent | 9aecd101b7b20b2dadb4a5e488f0ad841f56f531 (diff) |
import systemd into kogaion-desktop, will make it boot WAY faster in live mode
Diffstat (limited to 'sys-apps/systemd/files/226-kcmp.patch')
-rw-r--r-- | sys-apps/systemd/files/226-kcmp.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/sys-apps/systemd/files/226-kcmp.patch b/sys-apps/systemd/files/226-kcmp.patch new file mode 100644 index 00000000..a91f49fb --- /dev/null +++ b/sys-apps/systemd/files/226-kcmp.patch @@ -0,0 +1,31 @@ +From 75b554579b4e962e2c02053129a37611a2dc9133 Mon Sep 17 00:00:00 2001 +From: Mike Gilbert <floppym@gentoo.org> +Date: Mon, 14 Sep 2015 18:55:09 -0400 +Subject: [PATCH] Add fallback for kcmp() in case __NR_kcmp is undefined + +IA64 is missing this syscall as of linux-4.2. +This works around it until the necessary kernel patch gets merged. +--- + src/basic/missing.h | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/src/basic/missing.h b/src/basic/missing.h +index dc1f244..371ef8a 100644 +--- a/src/basic/missing.h ++++ b/src/basic/missing.h +@@ -1028,7 +1028,12 @@ static inline int renameat2(int oldfd, const char *oldname, int newfd, const cha + + #if !HAVE_DECL_KCMP + static inline int kcmp(pid_t pid1, pid_t pid2, int type, unsigned long idx1, unsigned long idx2) { ++#if defined(__NR_kcmp) + return syscall(__NR_kcmp, pid1, pid2, type, idx1, idx2); ++#else ++ errno = ENOSYS; ++ return -1; ++#endif + } + #endif + +-- +2.6.4 + |