summaryrefslogtreecommitdiffstats
path: root/src/basic
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2015-08-04 23:47:01 +0200
committerMatt Turner <mattst88@gmail.com>2015-08-04 23:47:52 +0200
commita242a99d42276b6b764f80bd0de70c26e5c5f1d4 (patch)
treea82e5d881e862654b7681ab54abcb4a6aad3f77b /src/basic
parentMerge pull request #855 from richardmaw-codethink/machinectl-copy-to-from-rel... (diff)
downloadsystemd-a242a99d42276b6b764f80bd0de70c26e5c5f1d4.tar.xz
systemd-a242a99d42276b6b764f80bd0de70c26e5c5f1d4.zip
Use getxpid syscall on alpha for raw_getpid()
Alpha does not have a getpid syscall, but rather has getxpid to match OSF/1.
Diffstat (limited to 'src/basic')
-rw-r--r--src/basic/missing.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/basic/missing.h b/src/basic/missing.h
index ed6cd80c75..34ab0254dd 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