[PR #307] [MERGED] Fix pthread portability problem #1453

Closed
opened 2026-03-04 01:54:02 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/307
Author: @rockuw
Created: 12/3/2015
Status: Merged
Merged: 12/3/2015
Merged by: @ggtakec

Base: masterHead: master


📝 Commits (2)

  • f44b61c Fix pthread portability problem
  • 3e655ba PTHREAD_MUTEX_RECURSIVE_NP is a enum not macro

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 src/fdcache.cpp (+1 -1)

📄 Description

I compiled s3fs-fuse on my Mac and got the following errors:

fdcache.cpp:622:38: error: use of undeclared identifier 'PTHREAD_MUTEX_RECURSIVE_NP'
    pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);   // recursive mutex
                                     ^

This pull request fixes this problem.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/s3fs-fuse/s3fs-fuse/pull/307 **Author:** [@rockuw](https://github.com/rockuw) **Created:** 12/3/2015 **Status:** ✅ Merged **Merged:** 12/3/2015 **Merged by:** [@ggtakec](https://github.com/ggtakec) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (2) - [`f44b61c`](https://github.com/s3fs-fuse/s3fs-fuse/commit/f44b61c4039571839d446c5c2e7d54ba4f2803ff) Fix pthread portability problem - [`3e655ba`](https://github.com/s3fs-fuse/s3fs-fuse/commit/3e655bad3b29c91fd1a2c453f3da82f7dcc445cc) PTHREAD_MUTEX_RECURSIVE_NP is a enum not macro ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/fdcache.cpp` (+1 -1) </details> ### 📄 Description I compiled s3fs-fuse on my Mac and got the following errors: ``` fdcache.cpp:622:38: error: use of undeclared identifier 'PTHREAD_MUTEX_RECURSIVE_NP' pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP); // recursive mutex ^ ``` This pull request fixes this problem. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 01:54:02 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#1453
No description provided.