From: Matt Turner Date: Tue, 4 Aug 2015 21:47:01 +0000 (-0700) Subject: Use getxpid syscall on alpha for raw_getpid() X-Git-Tag: v225~114^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a242a99d42276b6b764f80bd0de70c26e5c5f1d4;p=thirdparty%2Fsystemd.git Use getxpid syscall on alpha for raw_getpid() Alpha does not have a getpid syscall, but rather has getxpid to match OSF/1. --- diff --git a/src/basic/missing.h b/src/basic/missing.h index ed6cd80c753..34ab0254dda 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