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)

patch-src-dbus-wxdbusconnection.cpp.diff (330 bytes ) - added by Mojca Miklavec 11 years ago.
add #include <pthread.h> to avoid build failure on Mac OS X 10.9 and possibly other OSes

Download all attachments as: .zip

Change History (2)

by Mojca Miklavec, 11 years ago

add #include <pthread.h> to avoid build failure on Mac OS X 10.9 and possibly other OSes

comment:1 by Tim Kosse, 11 years ago

Resolution: fixed
Status: newclosed

Thanks.

Note: See TracTickets for help on using tickets.