#53 Fix building on GNU/Hurd

None
closed
None
5
2013-10-27
2013-09-29
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).

     
  • 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.

     
  • Pino Toscano

    Pino Toscano - 2013-09-29

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

     
  • Bernhard Praschinger

    • assigned_to: Bernhard Praschinger
    • Group: -->
     
  • Bernhard Praschinger

    Seems that the patch does not break anything, so I did put it into the CVS it will appear in the next release.

     
  • Bernhard Praschinger

    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks