OpenBSD stuff for libpthread-stubs:

- add a Makefile wrapper
- fix pthread_self() prototype.
This commit is contained in:
matthieu 2009-05-22 16:29:39 +00:00
parent 56772b1b3d
commit fc61d47eda
2 changed files with 6 additions and 1 deletions

View File

@ -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>

View File

@ -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