Skip to content

Fix ambiguous mutex reference by explicitly using std::mutex#160

Closed
psumbera wants to merge 1 commit intoawesomized:v1.xfrom
psumbera:mutex
Closed

Fix ambiguous mutex reference by explicitly using std::mutex#160
psumbera wants to merge 1 commit intoawesomized:v1.xfrom
psumbera:mutex

Conversation

@psumbera
Copy link
Contributor

On illumos/Solaris you get two different mutex symbols:

C++ standard library

std::mutex

System header

/usr/include/sys/mutex.h
typedef struct mutex { ... } mutex;

Because libmemcached includes system networking headers before , the unqualified name mutex becomes ambiguous once is included.

GCC 15 is stricter and now errors out instead of picking one.

@m6w6
Copy link
Collaborator

m6w6 commented Feb 18, 2026

Thank you!
Merged as 6fc079e.
Had to rebase/cherry-pick since your commit was not signed.

@m6w6 m6w6 closed this Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments