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:
Matt Turner 2015-08-04 14:47:01 -07:00
parent b736ee0b0c
commit a242a99d42

View file

@ -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