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

include unistd.h conditionally

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.0
    • Fix Version/s: 0.10.0
    • Component/s: C++ - Library
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      THeaderTransport.h includes unistd.h unconidionaly.
      This breaks on non posix systems.

      The solution is to include it only when the corresponding define is set, like it is done in the rest of the codebase.

        Attachments

        1. unistd_include.patch
          0.4 kB
          Pascal Bach

          Activity

            People

            • Assignee:
              hcorg Konrad Grochowski
              Reporter:
              pascal.bach Pascal Bach
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: