OpenBSD stuff for libpthread-stubs:
- add a Makefile wrapper - fix pthread_self() prototype.
This commit is contained in:
parent
56772b1b3d
commit
fc61d47eda
5
lib/libpthread-stubs/Makefile.bsd-wrapper
Normal file
5
lib/libpthread-stubs/Makefile.bsd-wrapper
Normal 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>
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user