summaryrefslogtreecommitdiff
path: root/sys-fs/udev/files
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2015-08-22 18:07:00 -0400
committerMike Gilbert <floppym@gentoo.org>2015-08-22 18:07:00 -0400
commit441221345e1852d21798290de7464f97bc07608c (patch)
tree1eb7303f920a8405f4b74dc4f045d373bc75d871 /sys-fs/udev/files
parenta877cc525221793d6a5fb72a017c2c00780d8ee4 (diff)
downloadgentoo-441221345e1852d21798290de7464f97bc07608c.tar.gz
gentoo-441221345e1852d21798290de7464f97bc07608c.tar.xz
sys-fs/udev: Backport build fix on alpha
Bug: https://bugs.gentoo.org/543900 Package-Manager: portage-2.2.20_p134
Diffstat (limited to 'sys-fs/udev/files')
-rw-r--r--sys-fs/udev/files/224-0002-Use-getxpid-syscall-on-alpha-for-raw_getpid.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/sys-fs/udev/files/224-0002-Use-getxpid-syscall-on-alpha-for-raw_getpid.patch b/sys-fs/udev/files/224-0002-Use-getxpid-syscall-on-alpha-for-raw_getpid.patch
new file mode 100644
index 00000000000..40e2d1c15e1
--- /dev/null
+++ b/sys-fs/udev/files/224-0002-Use-getxpid-syscall-on-alpha-for-raw_getpid.patch
@@ -0,0 +1,30 @@
+From a242a99d42276b6b764f80bd0de70c26e5c5f1d4 Mon Sep 17 00:00:00 2001
+From: Matt Turner <mattst88@gmail.com>
+Date: Tue, 4 Aug 2015 14:47:01 -0700
+Subject: [PATCH] Use getxpid syscall on alpha for raw_getpid()
+
+Alpha does not have a getpid syscall, but rather has getxpid to match
+OSF/1.
+---
+ src/basic/missing.h | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/src/basic/missing.h b/src/basic/missing.h
+index ed6cd80..34ab025 100644
+--- a/src/basic/missing.h
++++ b/src/basic/missing.h
+@@ -977,7 +977,11 @@ static inline int raw_clone(unsigned long flags, void *child_stack) {
+ }
+
+ static inline pid_t raw_getpid(void) {
++#if defined(__alpha__)
++ return (pid_t) syscall(__NR_getxpid);
++#else
+ return (pid_t) syscall(__NR_getpid);
++#endif
+ }
+
+ #if !HAVE_DECL_RENAMEAT2
+--
+2.5.0
+