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

 
 

patch #7977: PATH_MAX isn't defined on Hurd

Submitted by:  Andrew Potter <talisein>
Submitted on:  Mon 25 Mar 2013 02:01:06 AM UTC  
 
Category: script pluginPriority: 5 - Normal
Status: DonePrivacy: Public
Assigned to: Sebastien Helleu <flashcode>Open/Closed: Closed
IRC nick: talisein

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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 File(s):
   
   
Comment:
   

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 20 May 2013 09:10:41 AM UTCflashcodeOpen/ClosedOpen=>Closed
    Mon 25 Mar 2013 07:16:03 AM UTCflashcodeStatusNone=>Done
      Assigned toNone=>flashcode
    Mon 25 Mar 2013 02:01:06 AM UTCtaliseinAttached File-=>Added 0001-script-realpath-fix-for-platforms-that-don-t-define-.patch, #27671

    Back to the top


    Powered by Savane 3.1-cleanup