Opened 12 years ago

Closed 12 years ago

#3193 closed Bug (fixed)

PATH_MAX causing compilation issues

Reported by: sarav Owned by: charles
Priority: Normal Milestone: None Set
Component: libtransmission Version: 1.93
Severity: Blocker Keywords: backport-1.9x



I cross compile a headless transmission for Synology NAS devices. The source release 1.92 compiled fine but 1.93 doesn't compile any more. It stops compilation with an error saying it's not able to find PATH_MAX when it's used in bencode.c

Can you please fix appropriately? I see PATH_MAX used in other files, but it somehow seems to not cause problems in those files (may be they aren't compiled for headless builds).

Thanks, Sarav

Change History (3)

comment:1 Changed 12 years ago by sarav

Adding the following 3 lines in bencode.c fixed the issue.

#ifndef PATH_MAX

#define PATH_MAX 1024


comment:2 Changed 12 years ago by charles

  • Keywords backport-1.9x added

Fixed in trunk for 2.00 by r10629.

Flagging as "backport-1.9x" even though I put the odds of a 1.94 release at less than 1 in 100

comment:3 Changed 12 years ago by charles

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.