From 240000f893102e6e6a24abb0986e64da3a510570 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 22 Dec 2017 18:54:34 +0100 Subject: fix compile errors with alpha --- test/misc/tst-syscall0.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test/misc/tst-syscall0.c') diff --git a/test/misc/tst-syscall0.c b/test/misc/tst-syscall0.c index ebfca95..890eeb4 100644 --- a/test/misc/tst-syscall0.c +++ b/test/misc/tst-syscall0.c @@ -2,10 +2,16 @@ #include #include +#ifndef SYS_getpid +#define _SYS_call0 SYS_getxpid +#else +#define _SYS_call0 SYS_getpid +#endif + int main() { int pid; - pid = syscall(SYS_getpid); + pid = syscall(_SYS_call0); if (pid > 0) { printf("syscall(SYS_getpid) says %d\n", pid); return 0; -- cgit v1.2.3