Merge pull request #865 from mattst88/alpha-getxpid

Use getxpid syscall on alpha for raw_getpid()
This commit is contained in:
Daniel Mack
2015-08-05 07:38:08 +02:00
+4
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