Skip to content

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

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

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

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.

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.

1 participant