Uploaded image for project: 'Santuario'
  1. Santuario
  2. SANTUARIO-380

Avoid use of PATH_MAX where possible

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: C++ 1.7.0, C++ 1.7.1, C++ 1.7.2
    • Fix Version/s: C++ 1.7.3
    • Component/s: C++
    • Labels:
      None
    • Environment:
      Debian GNU/Hurd

      Description

      GNU/Hurd doesn't have PATH_MAX (and POSIX does not require this define be available).

      The attached patch probes via configure to see if getcwd can allocate a string of appropriate size itself and, if so, uses that capability, which will allow the package to build on Hurd. If that capability is not available, it falls back to the old behavior.

      Patch from Svante Signell <svante.signell@gmail.com>.

        Attachments

          Activity

            People

            • Assignee:
              scantor Scott Cantor
              Reporter:
              eagle Russ Allbery
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: