diff options
author | Matt Turner <mattst88@gmail.com> | 2015-08-04 14:47:01 -0700 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-03-14 10:18:46 +0100 |
commit | a09fac1851cfb9d35044f9855c11acaf8b32f282 (patch) | |
tree | abd0cdd9ff24feef6e1acfaffa6e2d62e2dcc209 | |
parent | e0e1a15baff1aa6f5844b156530f4081cc5cd827 (diff) |
Use getxpid syscall on alpha for raw_getpid()
Alpha does not have a getpid syscall, but rather has getxpid to match
OSF/1.
-rw-r--r-- | src/basic/missing.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/basic/missing.h b/src/basic/missing.h index aad00b965..37e1133d3 100644 --- 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 |