Ticket #9269 (closed Patch: fixed)

Opened 10 months ago

Last modified 9 months ago

add #include <pthread.h> to wxdbusconnection.cpp

Reported by: mojca Owned by:
Priority: normal Component: FileZilla Client
Keywords: Cc:
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

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

Change History

Changed 10 months ago by mojca

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

Changed 9 months ago by codesquid

  • status changed from new to closed
  • resolution set to fixed

Thanks.

Note: See TracTickets for help on using tickets.