diff options
author | Daniel Mack <github@zonque.org> | 2015-08-05 07:38:08 +0200 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-08-05 07:38:08 +0200 |
commit | 9ae742ea4f40da6150efeba7be06464fa031e123 (patch) | |
tree | a82e5d881e862654b7681ab54abcb4a6aad3f77b /src | |
parent | b736ee0b0c07b0652258d32042c009321f82f0d3 (diff) | |
parent | a242a99d42276b6b764f80bd0de70c26e5c5f1d4 (diff) |
Merge pull request #865 from mattst88/alpha-getxpid
Use getxpid syscall on alpha for raw_getpid()
Diffstat (limited to 'src')
-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 ed6cd80c75..34ab0254dd 100644 --- a/src/basic/missing.h +++ b/src/basic/missing.h @@ -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 |