Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#53 Fix building on GNU/Hurd

None
closed
None
5
2013-10-27
2013-09-29
Pino Toscano
No

On GNU/Hurd the POSIX-optional PATH_MAX is not defined on purpose, and neither is the non-standard MAXPATHLEN. This causes build failures in three places.

Attached there are few patches to replace them with
- usage of POSIX.1-8 behaviour of realpath (NULL as second argument returns a newly allocated buffer for the result)
- dynamic memory allocation for the strings

1 Attachments

Discussion

  • Pino Toscano
    Pino Toscano
    2013-09-29

    Patch for removing PATH_MAX usage (excluding the code paths for realpath not supporting the newer POSIX behaviour).

     
    Attachments
  • Pino Toscano
    Pino Toscano
    2013-09-29

    Patch for removing non-standard MAXPATHLEN usage.
    Most probably the sys/param.h could be removed, but I did not test that.

     
    Attachments
  • Pino Toscano
    Pino Toscano
    2013-09-29

    Ah, forgot to say the patches have been done on the latest mjpegtools 2.1.0.

     
    • assigned_to: Bernhard Praschinger
    • Group: -->
     
  • Seems that the patch does not break anything, so I did put it into the CVS it will appear in the next release.

     
    • status: open --> closed