summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-12-22 17:54:34 (GMT)
committerWaldemar Brodkorb <wbx@openadk.org>2017-12-22 17:54:34 (GMT)
commit240000f893102e6e6a24abb0986e64da3a510570 (patch)
treeb4cd1390afe05d20381918c1062aa273fef9b603
parentb227e47b1f7bf4a1adcfea823e2efc7be40d171b (diff)
fix compile errors with alpha
-rw-r--r--test/misc/tst-syscall0.c8
-rw-r--r--test/misc/tst-syscall6.c4
2 files changed, 11 insertions, 1 deletions
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 <unistd.h>
#include <sys/syscall.h>
+#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;
diff --git a/test/misc/tst-syscall6.c b/test/misc/tst-syscall6.c
index dad67d1..fa51c27 100644
--- a/test/misc/tst-syscall6.c
+++ b/test/misc/tst-syscall6.c
@@ -9,6 +9,7 @@
int main()
{
+#if defined SYS_preadv2 && defined SYS_pwritev2
char tmp[] = "/tmp/tst-preadv2-XXXXXX";
int fd;
struct iovec iov[2];
@@ -58,4 +59,7 @@ int main()
}
return 0;
+#else
+ return 23;
+#endif
}