summaryrefslogtreecommitdiff
path: root/lib/libpthread-stubs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpthread-stubs')
-rw-r--r--lib/libpthread-stubs/Makefile.bsd-wrapper5
-rw-r--r--lib/libpthread-stubs/stubs.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/libpthread-stubs/Makefile.bsd-wrapper b/lib/libpthread-stubs/Makefile.bsd-wrapper
new file mode 100644
index 000000000..70f001996
--- /dev/null
+++ b/lib/libpthread-stubs/Makefile.bsd-wrapper
@@ -0,0 +1,5 @@
+# $OpenBSD: Makefile.bsd-wrapper,v 1.1 2009/05/22 16:29:39 matthieu Exp $
+
+SHARED_LIBS= pthread-stubs 0.1
+
+.include <bsd.xorg.mk>
diff --git a/lib/libpthread-stubs/stubs.c b/lib/libpthread-stubs/stubs.c
index d267fa6ba..d70e0309a 100644
--- a/lib/libpthread-stubs/stubs.c
+++ b/lib/libpthread-stubs/stubs.c
@@ -30,7 +30,7 @@
#ifndef HAVE_PTHREAD_SELF
#define NEED_ZERO_STUB
# ifdef SUPPORT_ATTRIBUTE_ALIAS
-int pthread_self() __attribute__ ((weak, alias ("__pthread_zero_stub")));
+pthread_t pthread_self() __attribute__ ((weak, alias ("__pthread_zero_stub")));
# else
# pragma weak pthread_self = __pthread_zero_stub
# endif