diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2009-05-22 16:29:40 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2009-05-22 16:29:40 +0000 |
commit | a899c2a7a33f5072d5e37a44d5ed99bf17e1464c (patch) | |
tree | dbed1e734f1be962e0b99cca367da05ca443307b | |
parent | 818cd773e920afb162ff9ca9c6ee7e8d19753524 (diff) |
OpenBSD stuff for libpthread-stubs:
- add a Makefile wrapper
- fix pthread_self() prototype.
-rw-r--r-- | lib/libpthread-stubs/Makefile.bsd-wrapper | 5 | ||||
-rw-r--r-- | lib/libpthread-stubs/stubs.c | 2 |
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 |