summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--regress/lib/libc/sys/Makefile3
-rw-r--r--regress/lib/libc/sys/t_syscall.c7
2 files changed, 7 insertions, 3 deletions
diff --git a/regress/lib/libc/sys/Makefile b/regress/lib/libc/sys/Makefile
index db67e9078a6..c373432f56c 100644
--- a/regress/lib/libc/sys/Makefile
+++ b/regress/lib/libc/sys/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.6 2020/11/09 23:18:51 bluhm Exp $
+# $OpenBSD: Makefile,v 1.7 2020/11/10 14:43:14 bluhm Exp $
# Copyright (c) 2019 Moritz Buhl <openbsd@moritzbuhl.de>
# Copyright (c) 2019 Alexander Bluhm <bluhm@openbsd.org>
@@ -53,7 +53,6 @@ REGRESS_EXPECTED_FAILURES += run-t_msgrcv-3
REGRESS_EXPECTED_FAILURES += run-t_pipe2-2
REGRESS_EXPECTED_FAILURES += run-t_stat-1 run-t_stat-4 run-t_stat-5
REGRESS_EXPECTED_FAILURES += run-t_stat-6 run-t_stat-8
-REGRESS_EXPECTED_FAILURES += run-t_syscall-1
REGRESS_EXPECTED_FAILURES += run-t_unlink-2
. for p in ${PROGS}
diff --git a/regress/lib/libc/sys/t_syscall.c b/regress/lib/libc/sys/t_syscall.c
index 10a3692f519..72ad9139d67 100644
--- a/regress/lib/libc/sys/t_syscall.c
+++ b/regress/lib/libc/sys/t_syscall.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: t_syscall.c,v 1.1 2019/11/19 19:57:04 bluhm Exp $ */
+/* $OpenBSD: t_syscall.c,v 1.2 2020/11/10 14:43:14 bluhm Exp $ */
/* $NetBSD: t_syscall.c,v 1.3 2018/05/28 07:55:56 martin Exp $ */
/*-
@@ -47,6 +47,11 @@ __RCSID("$NetBSD: t_syscall.c,v 1.3 2018/05/28 07:55:56 martin Exp $");
#include <sys/endian.h>
#include <sys/syscall.h>
+#ifdef __OpenBSD__
+/* Declare prototype of __syscall locally specifying the return type. */
+quad_t __syscall(quad_t number, ...);
+#endif
+
#if !defined(_LP64) && BYTE_ORDER == _BIG_ENDIAN
#define __SYSCALL_TO_UINTPTR_T(V) ((uintptr_t)((V)>>32))
#else