summaryrefslogtreecommitdiff
path: root/libgcompat
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2018-03-16 18:50:09 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2018-03-16 18:50:09 +0000
commit70f81c1edf07718fab62abf3c88e124d6c658e59 (patch)
treeb1878d78926ca1142973ede2cd2b3235328cbc45 /libgcompat
parent1a59e495dbe68a6f5dc862f929ed38da056afbd4 (diff)
downloadgcompat-70f81c1edf07718fab62abf3c88e124d6c658e59.tar.gz
gcompat-70f81c1edf07718fab62abf3c88e124d6c658e59.tar.bz2
gcompat-70f81c1edf07718fab62abf3c88e124d6c658e59.tar.xz
gcompat-70f81c1edf07718fab62abf3c88e124d6c658e59.zip
build: allow building with libucontext support
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