X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=lib%2Fglthread%2Flock.h;fp=lib%2Fglthread%2Flock.h;h=30aa730b1d249ea0d07f78a4d756e6d7202a48dc;hb=dc02bf0d39a3ae0d90d9b7b0feb32c2cc7cdff86;hp=34ff109680b1305838e903d163a916249fa31781;hpb=a8a88eddaa90432e6ec1b8d9d5c9842bc91afd1d;p=debian%2Fgzip diff --git a/lib/glthread/lock.h b/lib/glthread/lock.h index 34ff109..30aa730 100644 --- a/lib/glthread/lock.h +++ b/lib/glthread/lock.h @@ -149,8 +149,14 @@ extern int glthread_in_use (void); # endif # if !PTHREAD_IN_USE_DETECTION_HARD -# pragma weak pthread_cancel -# define pthread_in_use() (pthread_cancel != NULL) + /* Considering all platforms with USE_POSIX_THREADS_WEAK, only few symbols + can be used to determine whether libpthread is in use. These are: + pthread_mutexattr_gettype + pthread_rwlockattr_destroy + pthread_rwlockattr_init + */ +# pragma weak pthread_mutexattr_gettype +# define pthread_in_use() (pthread_mutexattr_gettype != NULL) # endif # else