mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
Use getxpid syscall on alpha for raw_getpid()
Alpha does not have a getpid syscall, but rather has getxpid to match OSF/1.
This commit is contained in:
parent
b736ee0b0c
commit
a242a99d42
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user