configure of libpthread-stubs can't detect stubs on NetBSD
Submitted by AOSASA Shigeru
Assigned to xcb mailing list dummy
Description
Created attachment 28382 add support for NetBSD
NetBSD has pthread stubs, but configure script of libpthread-stubs can't detect them. because pthread stubs of NetBSD have non-standard names.
for example, '__libc_thr_self' is stub of pthread_self. '__libc_thr_self' is called by 'pthread_self' macro defined in <pthread.h>. (#define pthread_self __libc_thr_self)
attached patch adds support for NetBSD.
http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/thread-stub/thread-stub.c?rev=HEAD http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libpthread/pthread.c?rev=HEAD http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libpthread/pthread.h?rev=HEAD
Patch 28382, "add support for NetBSD":
libpthread-stubs-0.1.diff