summaryrefslogtreecommitdiff
path: root/lib/libc/sys/_getcontext.c
diff options
context:
space:
mode:
authorkleink <kleink@NetBSD.org>2003-01-21 19:15:05 +0000
committerkleink <kleink@NetBSD.org>2003-01-21 19:15:05 +0000
commita26c2fe5e29b7cbe588f9f64fa167ec7fe875d34 (patch)
tree327c99f80e82d073ef0e843476c995181fb66fd8 /lib/libc/sys/_getcontext.c
parentf3281c94bd7210e0bb5ecc94202d98c6fc385953 (diff)
A function wrapper cannot be used for getcontext(), so error out
if neither weak aliases nor indirect references are available.
Diffstat (limited to 'lib/libc/sys/_getcontext.c')
-rw-r--r--lib/libc/sys/_getcontext.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/lib/libc/sys/_getcontext.c b/lib/libc/sys/_getcontext.c
index 633601c0134..c9489b4f99a 100644
--- a/lib/libc/sys/_getcontext.c
+++ b/lib/libc/sys/_getcontext.c
@@ -1,4 +1,4 @@
-/* $NetBSD: _getcontext.c,v 1.2 2003/01/18 11:32:59 thorpej Exp $ */
+/* $NetBSD: _getcontext.c,v 1.3 2003/01/21 19:15:05 kleink Exp $ */
/*
* Copyright (c) 1996 Christos Zoulas. All rights reserved.
@@ -33,15 +33,5 @@
#ifdef __indr_reference
__indr_reference(_getcontext, getcontext)
#else
-
-#include <ucontext.h>
-int _getcontext __P((ucontext_t *)); /* XXX */
-
-int
-getcontext(ucp)
- ucontext_t *ucp;
-{
-
- return _getcontext(ucp);
-}
+#error requires either weak aliases or indirect references!
#endif