chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Prep v225: Applying various fixes and changes to src/libelogind/sd-event that got...
[elogind.git]
/
src
/
basic
/
missing.h
diff --git
a/src/basic/missing.h
b/src/basic/missing.h
index aad00b965e906d6ba7467cd28991adf0c6585488..37e1133d3aceb6633f174f0bd8ebf922a51bf121 100644
(file)
--- a/
src/basic/missing.h
+++ b/
src/basic/missing.h
@@
-957,7
+957,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