Merge pull request #72 from s3fs-fuse/issue#68

Fixed #68(FreeBSD issue)
This commit is contained in:
Takeshi Nakatani 2014-10-22 23:30:32 +09:00
commit 1eddf92c35

View File

@ -94,7 +94,9 @@ static void s3fs_crypt_mutex_lock(int mode, int pos, const char* file, int line)
static unsigned long s3fs_crypt_get_threadid(void)
{
return static_cast<unsigned long>(pthread_self());
// For FreeBSD etc, some system's pthread_t is structure pointer.
// Then we use cast like C style(not C++) instead of ifdef.
return (unsigned long)(pthread_self());
}
static struct CRYPTO_dynlock_value* s3fs_dyn_crypt_mutex(const char* file, int line)