diff options
Diffstat (limited to 'src/regress/lib/libc/sys/t_syscall.c')
-rw-r--r-- | src/regress/lib/libc/sys/t_syscall.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/regress/lib/libc/sys/t_syscall.c b/src/regress/lib/libc/sys/t_syscall.c index e864970262..72ad9139d6 100644 --- a/src/regress/lib/libc/sys/t_syscall.c +++ b/src/regress/lib/libc/sys/t_syscall.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_syscall.c,v 1.1.1.1 2019/11/19 19:57:04 bluhm Exp $ */ | 1 | /* $OpenBSD: t_syscall.c,v 1.2 2020/11/10 14:43:14 bluhm Exp $ */ |
2 | /* $NetBSD: t_syscall.c,v 1.3 2018/05/28 07:55:56 martin Exp $ */ | 2 | /* $NetBSD: t_syscall.c,v 1.3 2018/05/28 07:55:56 martin Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -47,6 +47,11 @@ __RCSID("$NetBSD: t_syscall.c,v 1.3 2018/05/28 07:55:56 martin Exp $"); | |||
47 | #include <sys/endian.h> | 47 | #include <sys/endian.h> |
48 | #include <sys/syscall.h> | 48 | #include <sys/syscall.h> |
49 | 49 | ||
50 | #ifdef __OpenBSD__ | ||
51 | /* Declare prototype of __syscall locally specifying the return type. */ | ||
52 | quad_t __syscall(quad_t number, ...); | ||
53 | #endif | ||
54 | |||
50 | #if !defined(_LP64) && BYTE_ORDER == _BIG_ENDIAN | 55 | #if !defined(_LP64) && BYTE_ORDER == _BIG_ENDIAN |
51 | #define __SYSCALL_TO_UINTPTR_T(V) ((uintptr_t)((V)>>32)) | 56 | #define __SYSCALL_TO_UINTPTR_T(V) ((uintptr_t)((V)>>32)) |
52 | #else | 57 | #else |