summaryrefslogtreecommitdiff
path: root/libgcompat
diff options
context:
space:
mode:
Diffstat (limited to 'libgcompat')
-rw-r--r--libgcompat/ucontext.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libgcompat/ucontext.c b/libgcompat/ucontext.c
index 4827263..1e7618c 100644
--- a/libgcompat/ucontext.c
+++ b/libgcompat/ucontext.c
@@ -1,7 +1,11 @@
#include <errno.h> /* errno, ENOSYS */
+#ifndef HAVE_LIBUCONTEXT
+
int getcontext(void *ucp)
{
errno = ENOSYS;
return -1;
}
+
+#endif