patchWeeChat - Patches: patch #7977, PATH_MAX isn't defined on Hurd


patch #7977: PATH_MAX isn't defined on Hurd

Submitter:  Andrew Potter <talisein>
Submitted:  Mon 25 Mar 2013 02:01:06 AM UTC
Category:  script plugin Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  flashcode Open/Closed:  Closed
IRC nick:  talisein
* Mandatory Fields

Add a New Comment Rich Markup

Mon 25 Mar 2013 07:16:03 AM UTC, comment #1: 

As discussed on IRC, I added the #define PATH_MAX in weechat-plugin.h (like it's done in weechat.h), so that all plugins can use it.

Sebastien Helleu <flashcode>
Group administrator
Mon 25 Mar 2013 02:01:06 AM UTC, original submission:  

Hurd doesn't define PATH_MAX, but it is assumed to exist in src/plugins/script/script-repo.c

Attached patch uses POSIX 2008's extension to realpath() to avoid PATH_MAX, and falls back to PATH_MAX or 4096 if unavailable.

A Debian Hurd user told me this fixes compilation for them.

Andrew Potter <talisein>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by flashcode (Posted a comment)
  • -email is unavailable- added by talisein (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-05-20 flashcode Open/ClosedOpen Closed
    2013-03-25 flashcode StatusNone Done
        Assigned toNone flashcode
    2013-03-25 talisein Attached File- Added 0001-script-realpath-fix-for-platforms-that-don-t-define-.patch, #27671

    Back to the top

    Powered by Savane 3.13-b921.
    Corresponding source code