Add weak fake pthread functions, which always fail. This is needed to
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Thu, 16 Dec 2004 22:55:29 +0000 (22:55 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Thu, 16 Dec 2004 22:55:29 +0000 (22:55 +0000)
commit1303ef3a8797f169117cb4a4219b6ee68ca5f108
tree69d4e57af9a56db037f124f53276d82e7dc44df4
parent1bf4e529646f0e608d725606325e099222394a3c
Add weak fake pthread functions, which always fail. This is needed to
allow non-threaded programs to link thread-aware libraries or dlopen
such shared objects. A similiar "solution" has been used by
XFree86 / Xorg for years in form of libXThrStub, but this was recently
retired. It can be a considered a short term solution until libcr is
ready.

Submitted-by: Simon 'corecode' Schubert <corecode@fs.ei.tum.de>
lib/libc/gen/Makefile.inc
lib/libc/gen/pthread_fake.c [new file with mode: 0644]