Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3206

Fix Visual Studio build failure due 'pthread_self': identifier not found

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.2
    • 0.10.0
    • C++ - Library
    • Visual Studio 2013 Update 5 RC

    • Patch Available
    • Patch

    Description

      Build fail of project lib\cpp\libthrift.vcxproj due to compile error

      1>c:\...\thrift\lib\cpp\src\thrift\transport\tsslsocket.cpp(69): error C3861: 'pthread_self': identifier not found
      

      The current Thrift code calls pthread_self() which is not available on Windows platform in current Thrift library dependency set.

      Herein I propose resolution by using native WINAPI equivalent GetCurrentThreadId() in case source is compiled when _WIN32 macro is defined.

      Attachments

        1. THRIFT-3206.patch
          0.5 kB
          Paweł Janicki

        Activity

          People

            roger Roger Meier
            pjanicki Paweł Janicki
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: