Opened 11 years ago
Closed 11 years ago
#9269 closed Patch (fixed)
add #include <pthread.h> to wxdbusconnection.cpp
Reported by: | Mojca Miklavec | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | FileZilla Client |
Keywords: | Cc: | ||
Component version: | Operating system type: | OS X | |
Operating system version: | 10.9 |
Description
On Mac OS X 10.9 FileZilla fails to build, throwing the following error:
wxdbusconnection.cpp:69:69: error: use of undeclared identifier 'pthread_self' bool CalledFromThread() const { return !pthread_equal(m_parent_id, pthread_self()); } ^ wxdbusconnection.cpp:123:16: error: use of undeclared identifier 'pthread_self' m_parent_id = pthread_self(); ^ 2 errors generated.
The attached patch adds
#include <pthread.h>
to src/dbus/wxdbusconnection.cpp
which seems to solve the problem.
See also https://trac.macports.org/ticket/41832 for the original report.
Attachments (1)
Note:
See TracTickets
for help on using tickets.
add #include <pthread.h> to avoid build failure on Mac OS X 10.9 and possibly other OSes