how to overcome missing stubs in FreeBSD 6 (continued)

Alex Dupre ale at FreeBSD.org
Tue Sep 22 17:30:22 UTC 2009


Alex Dupre wrote:
> In the pthread_equal() case the "right != clean" thing could be to 
> create a stub comparing the parameters instead of blindly return(1).

Maybe the following solution is better:

int pthread_equal() __attribute__ ((weak));
#define pthread_equal(a,b) (pthread_equal == 0 ? 1 : pthread_equal(a,b))

--
Alex Dupre


More information about the freebsd-threads mailing list