From a899c2a7a33f5072d5e37a44d5ed99bf17e1464c Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Fri, 22 May 2009 16:29:40 +0000 Subject: OpenBSD stuff for libpthread-stubs: - add a Makefile wrapper - fix pthread_self() prototype. --- lib/libpthread-stubs/Makefile.bsd-wrapper | 5 +++++ lib/libpthread-stubs/stubs.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 lib/libpthread-stubs/Makefile.bsd-wrapper 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 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 -- cgit v1.2.3